|
> I'm newbie to lua and I wonder how one can setglobal a C pointer > from C code. Lua has a special data type called 'userdata' userdata can hold a C pointer (It was actually designed to do so).. Look in liolib.c for a example (FILE *) stored in userdata.. /Erik