| 233 | |
| 234 | |
| 235 | static const char *get_prompt (lua_State *L, int firstline) { |
| 236 | const char *p; |
| 237 | lua_getglobal(L, firstline ? "_PROMPT" : "_PROMPT2"); |
| 238 | p = lua_tostring(L, -1); |
| 239 | if (p == NULL) p = (firstline ? LUA_PROMPT : LUA_PROMPT2); |
| 240 | return p; |
| 241 | } |
| 242 | |
| 243 | /* mark in error messages for incomplete statements */ |
| 244 | #define EOFMARK "<eof>" |
no test coverage detected