diff options
Diffstat (limited to 'src/junit/com/jogamp/gluegen/test/junit/generation/cpptest-included.h')
-rw-r--r-- | src/junit/com/jogamp/gluegen/test/junit/generation/cpptest-included.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/cpptest-included.h b/src/junit/com/jogamp/gluegen/test/junit/generation/cpptest-included.h index 8dbe022..2e6db9c 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/cpptest-included.h +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/cpptest-included.h @@ -1,2 +1,17 @@ #pragma once -#define EXAMPLE 42
\ No newline at end of file + +#ifndef CPPTEST_INCLUDED_H + #ifdef PRAGMA_ONCE_ENABLED + const int pragma_once_enabled = 1; + #else + #define CPPTEST_INCLUDED_H + const int pragma_once_enabled = 0; + #endif + + // pragma-once or macro-defined test, i.e. should not be included recursively + #include <cpptest-included.h> + + #define EXAMPLE 42 + + const int GOOD_H = EXAMPLE; +#endif |