nngn
Loading...
Searching...
No Matches
nngn::lua::traceback Class Reference

Type used to output the Lua call stack. More...

#include <traceback.h>

Public Member Functions

 traceback (lua_State *L_) noexcept
 Initializes an object, stores the state.
 
std::string str (void) const
 Creates a back trace as a string object.
 

Private Attributes

lua_State * L
 

Friends

std::ostream & operator<< (std::ostream &os, const traceback &t)
 Writes the back trace to an output stream.
 

Detailed Description

Type used to output the Lua call stack.

See also
nngn::lua::print_traceback
nngn::lua::state_view::print_traceback

Constructor & Destructor Documentation

◆ traceback()

nngn::lua::traceback::traceback ( lua_State * L_)
inlineexplicitnoexcept

Initializes an object, stores the state.

Member Function Documentation

◆ str()

std::string nngn::lua::traceback::str ( void ) const

Creates a back trace as a string object.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const traceback & t )
friend

Writes the back trace to an output stream.

Member Data Documentation

◆ L

lua_State* nngn::lua::traceback::L
private

The documentation for this class was generated from the following files: