Create a coroutine to run plans

This commit is contained in:
2021-02-17 13:38:22 -05:00
parent 210644da57
commit 213bf12425
8 changed files with 122 additions and 45 deletions

View File

@@ -15,17 +15,10 @@
// traceback_coroutine
//
// Given a coroutine and an error message, returns a traceback
// of the coroutine.
// Given a coroutine which contains an error message, pop the error
// message from the coroutine, and push a traceback onto L.
//
int traceback_coroutine(lua_State *L);
// traceback_handler
//
// The function 'pcall' expects you to pass in a message handler routine.
// 'traceback_handler' is designed to be used as this argument to pcall.
//
int traceback_handler(lua_State *L);
void traceback_coroutine(lua_State *L, lua_State *CO);
// traceback_pcall
//