diff options
author | Sven Gothel <[email protected]> | 2015-03-06 07:39:30 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-06 07:39:30 +0100 |
commit | 4183867b055e99762d9b1a9163012657738be31a (patch) | |
tree | a35cf0c4d399bd8a71c4a2de717209b0ef0eb94d /src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java | |
parent | 54dcf4271abf188585b248473cab11b0b4d93854 (diff) |
Bug 1134 - Utilize AliasedSymbol where required in *Configuration; Clarify ProcAddressEmitter criteria
Diffstat (limited to 'src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java index 81aa96b..982e16d 100644 --- a/src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java +++ b/src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java @@ -85,6 +85,10 @@ public class ProcAddressCMethodBindingEmitter extends CMethodBindingEmitter { emitter.getConfiguration() ); + if( needsLocalTypedef && !callThroughProcAddress ) { + throw new IllegalArgumentException("needsLocalTypedef=true, but callThroughProcAddress=false for "+methodToWrap.toString()); + } + if (methodToWrap.getReturnValueCapacityExpression() != null) { setReturnValueCapacityExpression(methodToWrap.getReturnValueCapacityExpression()); } |