aboutsummaryrefslogblamecommitdiff
path: root/nerv.c
blob: 2118a3c392b3819b520b8a8dee8e9dcf2db01830 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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;
}