MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / incomplete

Function incomplete

other_src/lua/src/lua.cpp:163–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163static int incomplete (lua_State *L, int status) {
164 if (status == LUA_ERRSYNTAX) {
165 size_t lmsg;
166 const char *msg = lua_tolstring(L, -1, &lmsg);
167 const char *tp = msg + lmsg - (sizeof(LUA_QL("<eof>")) - 1);
168 if (strstr(msg, LUA_QL("<eof>")) == tp) {
169 lua_pop(L, 1);
170 return 1;
171 }
172 }
173 return 0; /* else... */
174}
175
176
177static int pushline (lua_State *L, int firstline) {

Callers 1

loadlineFunction · 0.70

Calls 1

lua_tolstringFunction · 0.70

Tested by

no test coverage detected