|
Thank you. I was not aware that my structure
needed to be constructed because it was quite simple :-o
soundFileSt *sndf = (soundFileSt
*)lua_newuserdata(L, sizeof(soundFileSt));
sndf = new(sndf) soundFileSt(); luaL_getmetatable(L, "soundFileSt "); lua_setmetatable(L, -2); is working the same as lua_pushobject
Thanks again for answering!!
|