Initial revision of animqueue

This commit is contained in:
2021-01-12 14:14:38 -05:00
parent 78f8610eb8
commit 25b9b4cb5d
18 changed files with 785 additions and 308 deletions

View File

@@ -1,27 +1,37 @@
/////////////////////////////////////////////////////////////////
//
// TRACEBACK ROUTINES
//
// 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.
//
// The following routines are meant to help produce good-quality
// tracebacks from errors in lua code.
//
/////////////////////////////////////////////////////////////////
#ifndef TRACEBACK_HPP
#define TRACEBACK_HPP
#include "luastack.hpp"
// traceback_coroutine
//
// Given a coroutine and an error message, returns a traceback
// of the coroutine.
//
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);
// traceback_pcall
//
// same as lua_pcall, except that it automatically supplies traceback_handler as
// a message handler.
//
int traceback_pcall(lua_State *L, int narg, int nret);
#endif // TRACEBACK_HPP