lua-users home
lua-l archive

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


Hello,

I have got a LUA function like
         
         function myload(s)
            _G[s]={}
            return assert(loadfile(s..".lua","bt",_G[s]))()
         end

How can I do this with the C API? In my case, how can I get access to the _G
variable? Can I use equal calls for a variable? I would like also change the loadfile
to luaL_loadstring, can I do this?

Thanks

Phil