How about add method to get *C.lua_State?
edolphin-ydf opened this issue · comments
edolphin-ydf commented
Thanks for your work on golua.
After look around the source, i found that there is no way to get the *C.lua_State
.
Is it possible to export the member L.s
for some special usage?
Eg: in order to void call from go to c many times, i'v writen some c api which accept lua_State*
as a parameter( and some other params), but there is no way that i can access the L.s
except modify the golua source code.
Alessandro Arzilli commented
If you submit a PR for this I will approve it.
edolphin-ydf commented
PR created on both master and lua5.3 branch