God knows what's modified
This commit is contained in:
27
luprex/syscpp/traceback.hpp
Normal file
27
luprex/syscpp/traceback.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
/////////////////////////////////////////////////////////////////
|
||||
//
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user