From e024d6cab3b07ac2033630aac54e94d6494d8c5e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 7 Nov 2010 23:44:00 +0100 Subject: Fix PCPP 'define' case; Keep PCPP output file if 'debug' ; GlueGen uses PCPP in same thread via File. Fix PCPP 'define' case ------------------------ A recursive define like: #define LALA ((int)1) #define LILI LALA was streamed out of PCPP, even though such 'macro defines' like #define LILI ((int)1) are disabled due to the parsers inability to digg those. Added test on macro definition for replaced values. GlueGen uses PCPP in same thread via File ------------------------------------------ To ease debugging we call PCPP from the same thread and use normal temp files as i/o. Keep PCPP output file if 'debug' --------------------------------- Keep temp outfile if debug is enabled --- src/junit/com/jogamp/gluegen/test/junit/generation/test1.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/junit/com/jogamp/gluegen/test') diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h index eb7bb00..6cdb025 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h @@ -92,3 +92,10 @@ MYAPI MYAPIConfig MYAPIENTRY typeTestAnonSingle(const MYAPIConfig a); /** Return a copy of the passed MYAPIConfig*, incremented by 1 */ MYAPI MYAPIConfig * MYAPIENTRY typeTestAnonPointer(const MYAPIConfig * a); +#define DOUBLE_DEFINE_BRACKETS_1 ( ( int ) 1e51 ) +#define DOUBLE_DEFINE_BRACKETS_2 ((int) 1e52) + +#define HUGE_VALF_3 ((int) 1e53) +#define DOUBLE_DEFINE_BRACKETS_3 HUGE_VALF_3 + + -- cgit v1.2.3