aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2014-03-05 14:39:17 -0600
committerWade Walker <[email protected]>2014-03-05 14:39:17 -0600
commit7616f7b1a877f078fe76ff510d8e95ccd2a908d9 (patch)
tree420b9b00600019748f243772717e9de1524f28fe
parent15ea21ea190a79a3740b66698103ef5b4f145e94 (diff)
Allow Ignore in config to ignore unnamed structs.
Augments the behavior of the Ignore keyword to ignore when gluegen skips the emission of unnamed structs. These structs are usually unnamed because we've created opaque types for them, so we know they're not going to be emitted and want to be able to suppress the warning on a case-by-case basis.
-rw-r--r--src/java/com/jogamp/gluegen/JavaEmitter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java
index 380b5e4..cf425cd 100644
--- a/src/java/com/jogamp/gluegen/JavaEmitter.java
+++ b/src/java/com/jogamp/gluegen/JavaEmitter.java
@@ -788,6 +788,9 @@ public class JavaEmitter implements GlueEmitter {
}
if (name == null) {
+ if ((structType.getStructName() != null) && cfg.shouldIgnoreInInterface(structType.getStructName()))
+ return;
+
LOG.log(WARNING, "skipping emission of unnamed struct \"{0}\"", structType);
return;
}