|
|
| debug (void) |
| | Constructor for an empty debug structure.
|
|
| ~debug (void) |
| | Destructor.
|
| void | get_info (state &, const std::string &) const |
| | Wrapper around lua_getinfo.
|
| void | get_stack (state &, int) const |
| | Wrapper around lua_getstack.
|
| int | event (void) const |
| | Accessor for the 'event' field of lua_Debug.
|
| std::string | name (void) const |
| | Accessor for the 'name' field of lua_Debug.
|
| std::string | name_what (void) const |
| | Accessor for the 'namewhat' field of lua_Debug.
|
| std::string | what (void) const |
| | Accessor for the 'what' field of lua_Debug.
|
| std::string | source (void) const |
| | Accessor for the 'source' field of lua_Debug.
|
| int | current_line (void) const |
| | Accessor for the 'currentline' field of lua_Debug.
|
| int | n_ups (void) const |
| | Accessor for the 'nups' field of lua_Debug.
|
| int | line_defined (void) const |
| | Accessor for the 'linedefined' field of lua_Debug.
|
| int | last_line_defined (void) const |
| | Accessor for the 'lastlinedefined' field of lua_Debug.
|
| std::string | short_src (void) const |
| | Accessor for the 'short_src' field of lua_Debug.
|
A model for the Lua debug state.
This extremely-simple class provides a mechanism to hide the internals of the C native lua_Debug type, exposing its internal fields using friendlier C++ types.
This class also acts as a complement to the state class by exposing any state-related functions as methods of this function. For example, while it might seem that get_info() belongs in state, we expose it from here because its result is really mutating a debug object, not the state object.