Files
integration/luprex/syscpp/traceback.hpp

28 lines
730 B
C++
Raw Normal View History

2021-01-02 13:31:18 -05:00
/////////////////////////////////////////////////////////////////
//
//
// Traceback routines.
//
// traceback_handler: a traceback routine meant to be used
// as a message handler routine for 'pcall'.
//
// traceback_coroutine: takes a coroutine and an error message.
// Returns a traceback of the coroutine.
//
// traceback_pcall: same as lua_pcall, except that it supplies
// the default traceback_handler as a message handler.
//
//
/////////////////////////////////////////////////////////////////
#ifndef TRACEBACK_HPP
#define TRACEBACK_HPP
#include "luastack.hpp"
int traceback_coroutine(lua_State *L);
int traceback_handler(lua_State *L);
int traceback_pcall(lua_State *L, int narg, int nret);
#endif // TRACEBACK_HPP