|
int lua_proc_glance_grab( lua_State *L ) {
proc_glance_t *glance =
(proc_glance_t*)lua_newuserdata(L,sizeof(proc_glance_t));
if ( glance ) return 1;
luaL_setmetatable(L,PROC_GLANCE_CLASS);
return 1;
}
local glance = class_proc_glance.new()
if glance then
local notice = glance:init("gasp")
gasp/lua/cfg/proc.lua:7: attempt to index a userdata value (local 'glance')