** 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. */
| 551 | ** incomplete statements. |
| 552 | */ |
| 553 | static 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 | /* |
no test coverage detected