From 40ed7595d282f79eb332965c1684bb368674ac36 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 7 Nov 2010 22:09:14 +0100 Subject: PCPP: Add '# ' pass through ; Fix NB antlr.jar reference --- src/java/com/jogamp/gluegen/pcpp/PCPP.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/java/com/jogamp/gluegen/pcpp/PCPP.java b/src/java/com/jogamp/gluegen/pcpp/PCPP.java index 987d0a9..95a4b43 100644 --- a/src/java/com/jogamp/gluegen/pcpp/PCPP.java +++ b/src/java/com/jogamp/gluegen/pcpp/PCPP.java @@ -422,7 +422,17 @@ public class PCPP { handleInclude(); shouldPrint = false; } else { - // Unknown preprocessor directive (#pragma?) -- ignore + int line = -1; + try { + // try '# ""' case + line = Integer.parseInt(w); + String filename = nextWordOrString(); + print("# " + line + " " + filename); + println(); + shouldPrint = false; + } catch (NumberFormatException nfe) { + // Unknown preprocessor directive (#pragma?) -- ignore + } } if (shouldPrint) { print("# "); -- cgit v1.2.3