From afcaca4f7f9b03aaa3482fc71921f7baf3147e8b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 7 Nov 2010 08:25:53 +0100 Subject: Fix PCPP encapsualted if/if blocks --- test/junit/com/jogamp/gluegen/PCPPTest.java | 13 ++++- test/junit/com/jogamp/gluegen/pcpptest.h | 74 +++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 1 deletion(-) (limited to 'test/junit') diff --git a/test/junit/com/jogamp/gluegen/PCPPTest.java b/test/junit/com/jogamp/gluegen/PCPPTest.java index 70b6a84..8e06646 100644 --- a/test/junit/com/jogamp/gluegen/PCPPTest.java +++ b/test/junit/com/jogamp/gluegen/PCPPTest.java @@ -68,7 +68,18 @@ public class PCPPTest { "# 40 \"pcpptest.h\""+ "#54\"pcpptest.h\""+ " int TEST_D_GOOD;"+ - "#60\"pcpptest.h\""; + "#60\"pcpptest.h\""+ + "#70\"pcpptest.h\""+ + "#77\"pcpptest.h\""+ + "#105\"pcpptest.h\""+ + "#123\"pcpptest.h\""+ + " int GOOD_F_1;"+ + " int GOOD_F_2;"+ + "#126\"pcpptest.h\""+ + " int GOOD_G;"+ + "#128\"pcpptest.h\""+ + "#132\"pcpptest.h\""+ + "#134\"pcpptest.h\""; output.flush(); String result = output.toString(); diff --git a/test/junit/com/jogamp/gluegen/pcpptest.h b/test/junit/com/jogamp/gluegen/pcpptest.h index e52cc5c..5a2d25a 100644 --- a/test/junit/com/jogamp/gluegen/pcpptest.h +++ b/test/junit/com/jogamp/gluegen/pcpptest.h @@ -57,3 +57,77 @@ int TEST_C; int TEST_D_ERROR; #endif +#if (defined(__NO__) && defined(__NOPE__)) + #define TEST_E_VAL ((long) 0x7FFFFFFFFFFFFFFFLL) +#else + #define TEST_E_VAL ((long) 0x7FFFFFFFFFFFFFFFLL) +#endif + +/*** + ** STD API file .. + */ + +#ifndef __test_h_ +#define __test_h_ + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined( __NANA__ ) + #if defined( __MINGW64__ ) + #include + #elif defined( __NONO__ ) + #include + #else + #include + #endif + #if defined( __GNUC__ ) + #include + #else + #include + #endif +#else + #if defined( __MINGW64__ ) + #include + #elif defined( __NONO__) + #include + #else + #define TEST_F_VAL1 GOOD_F_1 + #endif + #if defined( __GNUC__ ) + #include + #else + #define TEST_F_VAL2 GOOD_F_2 + #endif +#endif + +#if defined( __YES__ ) + #if defined( __NONO__) + #include + #elif defined( __YES__) + #define TEST_G_VAL GOOD_G + #else + #include + #endif +#else + #if defined( __MINGW64__ ) + #include + #elif defined( __NONO__) + #include + #else + #include + #endif +#endif + +int TEST_F_VAL1; +int TEST_F_VAL2; + +int TEST_G_VAL; + +#ifdef __cplusplus +} +#endif + +#endif /* __test_h_ */ + -- cgit v1.2.3