[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: access to _G
- From: Philipp Kraus <philipp.kraus@...>
- Date: Mon, 11 Mar 2013 15:15:02 +0100
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