MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / incomplete

Function incomplete

third-party/lua-5.4.6/src/lua.c:489–497  ·  view source on GitHub ↗

** Check whether 'status' signals a syntax error and the error ** message at the top of the stack ends with the above mark for ** incomplete statements. */

Source from the content-addressed store, hash-verified

487** incomplete statements.
488*/
489static int incomplete (lua_State *L, int status) {
490 if (status == LUA_ERRSYNTAX) {
491 size_t lmsg;
492 const char *msg = lua_tolstring(L, -1, &lmsg);
493 if (lmsg >= marklen && strcmp(msg + lmsg - marklen, EOFMARK) == 0)
494 return 1;
495 }
496 return 0; /* else... */
497}
498
499
500/*

Callers 1

multilineFunction · 0.70

Calls 1

lua_tolstringFunction · 0.70

Tested by

no test coverage detected