forked from redo/BlockLua
18 lines
453 B
C++
18 lines
453 B
C++
// Shared declarations for Lua <-> TS argument handling
|
|
#ifndef _H_LUAINTERP_SHARED
|
|
#define _H_LUAINTERP_SHARED
|
|
|
|
#include "lua.h"
|
|
|
|
#define BLL_ARG_COUNT 20
|
|
#define BLL_ARG_MAX 8192
|
|
|
|
extern char bll_arg_buffer[BLL_ARG_COUNT][BLL_ARG_MAX];
|
|
bool bll_toarg(lua_State* L, char* buf, int i, bool err);
|
|
int bll_pcall(lua_State* L, int nargs, int nret);
|
|
void bll_printError(lua_State* L, const char* operation, const char* item);
|
|
|
|
extern lua_State* gL;
|
|
|
|
#endif
|