Skip to content

Commit 75f1c64

Browse files
jpeletiermarcelstoer
authored andcommitted
fix compilation error when disabling startup banner (#3103)
1 parent 93c82f1 commit 75f1c64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/lua53/lua.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ static int docall (lua_State *L, int narg, int nres) {
115115
}
116116

117117
static void print_version (lua_State *L) {
118+
#ifndef DISABLE_STARTUP_BANNER
118119
lua_writestringerror( "\n" NODE_VERSION " build " BUILD_DATE
119120
" powered by " LUA_RELEASE " on SDK %s\n", SDK_VERSION);
121+
#endif
120122
}
121123

122124

@@ -239,9 +241,7 @@ static int pmain (lua_State *L) {
239241
input_setup(LUA_MAXINPUT, get_prompt(L, 1));
240242
lua_input_string(" \n", 2); /* queue CR to issue first prompt */
241243

242-
#ifndef DISABLE_STARTUP_BANNER
243244
print_version(L);
244-
#endif
245245
/*
246246
* And last of all, kick off application initialisation. Note that if
247247
* LUA_INIT_STRING is a file reference and the file system is uninitialised

0 commit comments

Comments
 (0)