lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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 Markus

PS.: Use the source, luke! (for example http://www.inf.puc-rio.br/~ana/cgilua/)