diff options
Diffstat (limited to 'ThirdParty/tolua-5.2.4/src/tests/tenum.c')
-rw-r--r-- | ThirdParty/tolua-5.2.4/src/tests/tenum.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ThirdParty/tolua-5.2.4/src/tests/tenum.c b/ThirdParty/tolua-5.2.4/src/tests/tenum.c new file mode 100644 index 0000000..3ecf4b6 --- /dev/null +++ b/ThirdParty/tolua-5.2.4/src/tests/tenum.c @@ -0,0 +1,26 @@ +#include "lualib.h" +#include "lauxlib.h" + +#include "tenum.h" + +Status checkenum (Order o) +{ + if (o == FIRST) + return TRUE; + else + return FALSE; +} + +int main (void) +{ + int tolua_tenum_open (lua_State*); + lua_State* L = luaL_newstate(); + + luaL_openlibs(L); + tolua_tenum_open(L); + + luaL_dofile(L,"tenum.lua"); + + lua_close(L); + return 0; +} |