|
neko_soy wrote:
Hi, im using min.c to make a mini lua.exe, but i want to set globals like BGCOLOR and i dont know how to code it. I only can write new functions :P
lua_pushstring(L, "0.0.1"); lua_setglobal(L, "MFLIB_VERSION"); registers the global MFLIB_VERSION. for further information, I recommend: http://www.lua.org/manual/manual.html#5.3 Regards MarkusPS.: Use the source, luke! (for example http://www.inf.puc-rio.br/~ana/cgilua/)