diff options
Diffstat (limited to 'src/java/com/jogamp/gluegen/MethodBinding.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/MethodBinding.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/com/jogamp/gluegen/MethodBinding.java b/src/java/com/jogamp/gluegen/MethodBinding.java index 95a10c6..efa938f 100644 --- a/src/java/com/jogamp/gluegen/MethodBinding.java +++ b/src/java/com/jogamp/gluegen/MethodBinding.java @@ -1,4 +1,5 @@ /* + * Copyright (c) 2010-2023 JogAmp Community. All rights reserved. * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without @@ -155,6 +156,17 @@ public class MethodBinding { return sym.getArgumentType(i); } + public final boolean isReturnCompoundByValue() { + final Type cReturnType = getCReturnType(); + if (cReturnType.isVoid()) { + return false; + } + if (javaReturnType.isPrimitive()) { + return false; + } + return !cReturnType.isPointer() && javaReturnType.isCompoundTypeWrapper(); + } + /** Returns the {@link FunctionSymbol}. */ public FunctionSymbol getCSymbol() { return sym; |