aboutsummaryrefslogtreecommitdiff
path: root/nerv.c
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-14 08:08:32 +0800
committerDeterminant <[email protected]>2015-05-14 08:08:32 +0800
commita774bfc860471ac880a9b33bbe68761ec9187caf (patch)
tree67be5f7a04719750441845698ab7426ce9fd8a63 /nerv.c
init
Diffstat (limited to 'nerv.c')
-rw-r--r--nerv.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/nerv.c b/nerv.c
new file mode 100644
index 0000000..2118a3c
--- /dev/null
+++ b/nerv.c
@@ -0,0 +1,13 @@
+#include "lua.h"
+#include "lauxlib.h"
+#include "lualib.h"
+
+extern int nerv_point_init(lua_State *L);
+
+LUALIB_API int luaopen_libnerv(lua_State *L) {
+ lua_newtable(L);
+ lua_pushvalue(L, -1);
+ lua_setfield(L, LUA_GLOBALSINDEX, "nerv");
+ nerv_point_init(L);
+ return 1;
+}