blob: aa808c3abcc459ed3d3b821ed34522f9d9d4bd11 (
plain) (
tree)
|
|
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
extern void nerv_point_init(lua_State *L);
extern void nerv_matrix_init(lua_State *L);
int luaopen_libnerv(lua_State *L) {
lua_newtable(L);
lua_pushvalue(L, -1);
lua_setfield(L, LUA_GLOBALSINDEX, "nerv");
nerv_point_init(L);
nerv_matrix_init(L);
return 1;
}
|