From 7616f7b1a877f078fe76ff510d8e95ccd2a908d9 Mon Sep 17 00:00:00 2001 From: Wade Walker Date: Wed, 5 Mar 2014 14:39:17 -0600 Subject: 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. --- src/java/com/jogamp/gluegen/JavaEmitter.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/java/com/jogamp') 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; } -- cgit v1.2.3