aarzilli / golua

Go bindings for Lua C API - in progress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How about add method to get *C.lua_State?

edolphin-ydf opened this issue · comments

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.

If you submit a PR for this I will approve it.

PR created on both master and lua5.3 branch