aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-08 09:00:08 +0100
committerSven Gothel <[email protected]>2015-03-08 09:00:08 +0100
commit457355003bff320eee831731de016d29fb1e3982 (patch)
treeff3a257a8d2e083813f1499b906687576eddb558 /src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
parentda909f84dc8421052c92491baa7dd90e1c78dc8f (diff)
Bug 1134 - Logging's formatter now takes care of Type -> getDebugString() when desired, not at 'log' call
Removes load to assemble the getDebugString() of Type and JavaType when invoking log function. Note: the log may be skipped if log-level is not reached.
Diffstat (limited to 'src/java/com/jogamp/gluegen/CMethodBindingEmitter.java')
-rw-r--r--src/java/com/jogamp/gluegen/CMethodBindingEmitter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
index ed8c2d0..4599a56 100644
--- a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
+++ b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
@@ -866,7 +866,7 @@ public class CMethodBindingEmitter extends FunctionEmitter {
writer.print(convName+"_copy[_copyIndex]");
writer.println(");");
} else {
- if (true) throw new GlueGenException(
+ throw new GlueGenException(
"Cannot yet handle type \"" + cArgType.getDebugString() +
"\"; need to add support for cleaning up copied ptr-to-ptr-to-primitiveType subarrays",
binding.getCSymbol().getASTLocusTag());