|
ok i got a simple metatable wrapper 4 a c class,
when u call a function it gets it in the __index
metatable and then passes it to a function thats
something like this
int Call(lua_State *L)
{
Foo* f=*(Foo**)lua_touserdata(L,
1);
String i=luaL_check_string(L,
2);
if(i=="Load")
f->Load();
else if(i=="Render")
f->Render();
return 0;
}
ok, and the functions get called, but after that
the script just exits.. and i dont know y
also i dont now how to get the arguments for a
function call, like if i wanted Load to take a string..
can anyone help ?
-Ben
|