summaryrefslogtreecommitdiff
path: root/tolua/src/tests/tconstant.pkg
diff options
context:
space:
mode:
Diffstat (limited to 'tolua/src/tests/tconstant.pkg')
-rw-r--r--tolua/src/tests/tconstant.pkg34
1 files changed, 34 insertions, 0 deletions
diff --git a/tolua/src/tests/tconstant.pkg b/tolua/src/tests/tconstant.pkg
new file mode 100644
index 0000000..ada3390
--- /dev/null
+++ b/tolua/src/tests/tconstant.pkg
@@ -0,0 +1,34 @@
+$#include "tconstant.h"
+
+#define FIRST 1
+#define SECOND 2
+
+enum {
+ ONE = 1,
+ TWO = 2
+};
+
+module M {
+
+#define M_FIRST@FIRST 1
+#define M_SECOND@SECOND 2
+
+enum {
+ M_ONE@ONE = 1,
+ M_TWO@TWO = 2
+};
+}
+
+class A {
+public:
+
+ #define FIRST 1
+ #define SECOND 2
+
+ enum {
+ ONE = 1,
+ TWO = 2
+ };
+};
+
+