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/tmodule.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ThirdParty/toluapp/src/tests/tmodule.c (limited to 'ThirdParty/toluapp/src/tests/tmodule.c') diff --git a/ThirdParty/toluapp/src/tests/tmodule.c b/ThirdParty/toluapp/src/tests/tmodule.c new file mode 100644 index 0000000..1cbfa29 --- /dev/null +++ b/ThirdParty/toluapp/src/tests/tmodule.c @@ -0,0 +1,24 @@ +#include "lualib.h" +#include "lauxlib.h" + +#include "tmodule.h" + +int a = 1; +int b = 2; +int c = 3; +int d = 4; + +int main () +{ + int tolua_tmodule_open (lua_State*); + + lua_State* L = lua_open(); + luaopen_base(L); + tolua_tmodule_open(L); + + lua_dofile(L,"tmodule.lua"); + + lua_close(L); + return 0; +} + -- cgit v1.1-26-g67d0