Add in_lua flag
In preparation of making config errors available to lua scripts, instead outputting them via pline.
This commit is contained in:
@@ -1646,6 +1646,7 @@ extern int l_obj_register(lua_State *);
|
||||
|
||||
#if !defined(CROSSCOMPILE) || defined(CROSSCOMPILE_TARGET)
|
||||
extern lua_State * nhl_init(void);
|
||||
extern void nhl_done(lua_State *);
|
||||
extern boolean nhl_loadlua(lua_State *, const char *);
|
||||
extern boolean load_lua(const char *);
|
||||
extern void nhl_error(lua_State *, const char *) NORETURN;
|
||||
|
||||
@@ -174,6 +174,7 @@ struct instance_flags {
|
||||
* a structure of their own elsewhere some day.
|
||||
*/
|
||||
boolean debug_fuzzer; /* fuzz testing */
|
||||
boolean in_lua; /* executing a lua script */
|
||||
boolean defer_plname; /* X11 hack: askname() might not set g.plname */
|
||||
boolean herecmd_menu; /* use menu when mouseclick on yourself */
|
||||
boolean invis_goldsym; /* gold symbol is ' '? */
|
||||
|
||||
Reference in New Issue
Block a user