summaryrefslogblamecommitdiff
path: root/nerv.c
blob: 3dc989548bcf9b80840a8b279109df98e9293af6 (plain) (tree)
1
2
3
4
5
6
7
8
9



                    

                                           
 
                                   
                    

                                              
                        

             
#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_setfield(L, LUA_GLOBALSINDEX, "nerv");
    nerv_point_init(L);
    nerv_matrix_init(L);
    return 1;
}