How to access lua_debug?
BlitzMax Forums/BlitzMax Programming/How to access lua_debug?
| ||
Hi, I am playing around a little with Lua and wanted to get some debug information on my script. Lua therefor has lua_debug, which is an c-struct which gets filled with data on certain calls. In pub.lua, lua_debug is defined as extern type. All the functions that access it call a lua_debug ptr. I'm not that far into C and my questions would be: - how to get an instance of lua_debug ('extern types can't call new-method')? - how to get an lua_debug ptr from that instance? - can I access all fields normally once it is created or is some extern code needed for this purpose? EDIT: Nevermind, found the solution local luadebug:lua_debug ptr = lua_debug ptr(memalloc(100)) |