Include variables in redbean lua traceback

This commit is contained in:
Justine Tunney 2022-04-16 12:45:10 -07:00
parent be7c5e1071
commit 933f33bcc1
4 changed files with 59 additions and 13 deletions

View file

@ -1,16 +1,9 @@
/*
** $Id: lauxlib.h $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
#ifndef lauxlib_h
#define lauxlib_h
#include "libc/stdio/stdio.h"
#include "third_party/lua/luaconf.h"
#include "third_party/lua/lua.h"
#include "third_party/lua/luaconf.h"
/* clang-format off */
/* global table */
#define LUA_GNAME "_G"
@ -110,6 +103,9 @@ LUALIB_API int (luaL_getsubtable) (lua_State *L, int idx, const char *fname);
LUALIB_API void (luaL_traceback) (lua_State *L, lua_State *L1,
const char *msg, int level);
LUALIB_API void (luaL_traceback2) (lua_State *L, lua_State *L1,
const char *msg, int level);
LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
lua_CFunction openf, int glb);