aboutsummaryrefslogblamecommitdiff
path: root/nerv.c
blob: 55ae5b60d8f83d6e43932b76a6281e3f9dee07e3 (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);
extern void nerv_param_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);
    nerv_param_init(L);
    return 1;
}