From efce5b6bd5c9d4f8214a71e0f7a7c35751710a4c Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Nov 2021 01:17:11 +0800 Subject: + tolua + lpeg --- ThirdParty/toluapp/src/tests/tconstant.pkg | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ThirdParty/toluapp/src/tests/tconstant.pkg (limited to 'ThirdParty/toluapp/src/tests/tconstant.pkg') diff --git a/ThirdParty/toluapp/src/tests/tconstant.pkg b/ThirdParty/toluapp/src/tests/tconstant.pkg new file mode 100644 index 0000000..ada3390 --- /dev/null +++ b/ThirdParty/toluapp/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 + }; +}; + + -- cgit v1.1-26-g67d0