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.
 
 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.
 
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() [1/2]

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

Initializes an object, stores the state.

◆ traceback() [2/2]

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

Initializes an object, stores the state.

Member Function Documentation

◆ str() [1/2]

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

Creates a back trace as a string object.

Here is the caller graph for this function:

◆ str() [2/2]

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

Creates a back trace as a string object.

Friends And Related Function Documentation

◆ operator<< [1/2]

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

Writes the back trace to an output stream.

◆ operator<< [2/2]

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: