summaryrefslogtreecommitdiff
path: root/tolua/src/tests/tenum.c
diff options
context:
space:
mode:
Diffstat (limited to 'tolua/src/tests/tenum.c')
-rw-r--r--tolua/src/tests/tenum.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/tolua/src/tests/tenum.c b/tolua/src/tests/tenum.c
new file mode 100644
index 0000000..3ecf4b6
--- /dev/null
+++ b/tolua/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;
+}