Example #1
0
int main(int argc, char** argv){
	unsigned long base = strtoul(argv[2], NULL, 0);
	unsigned long len = strtoul(argv[3], NULL, 0);
	printf("mklib base=%lx len=%lu\n", base, len);
	make_lib(argv[1], base, len);
	return 0;//sys_uselib(argv[1]);
}
Example #2
0
static void make_tracer_lib(lua_State *L)
{
	make_lib(L, TRACER_LIB, TRACER_META,
			tracerlib_functions,
			tracerlib_methods);
}
Example #3
0
static void make_material_lib(lua_State *L)
{
	make_lib(L, MATERIAL_LIB, MATERIAL_META,
			materiallib_functions,
			materiallib_methods);
}
Example #4
0
static void make_scene_lib(lua_State *L)
{
	make_lib(L, SCENE_LIB, SCENE_META,
			scenelib_functions,
			scenelib_methods);
}
Example #5
0
static void make_color_lib(lua_State *L)
{
	make_lib(L, COLOR_LIB, COLOR_META,
			colorlib_functions,
			colorlib_methods);
}