MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / incomplete

Function incomplete

lua/lua.c:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

loadlineFunction · 0.85

Calls 1

lua_tolstringFunction · 0.85

Tested by

no test coverage detected