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

Function incomplete

third-party/lua-5.5.0/src/lua.c:553–561  ·  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

551** incomplete statements.
552*/
553static int incomplete (lua_State *L, int status) {
554 if (status == LUA_ERRSYNTAX) {
555 size_t lmsg;
556 const char *msg = lua_tolstring(L, -1, &lmsg);
557 if (lmsg >= marklen && strcmp(msg + lmsg - marklen, EOFMARK) == 0)
558 return 1;
559 }
560 return 0; /* else... */
561}
562
563
564/*

Callers 1

multilineFunction · 0.70

Calls 1

lua_tolstringFunction · 0.70

Tested by

no test coverage detected