| 149 | |
| 150 | |
| 151 | static const char *get_prompt (lua_State *L, int firstline) { |
| 152 | const char *p; |
| 153 | lua_getfield(L, LUA_GLOBALSINDEX, firstline ? "_PROMPT" : "_PROMPT2"); |
| 154 | p = lua_tostring(L, -1); |
| 155 | if (p == NULL) p = (firstline ? LUA_PROMPT : LUA_PROMPT2); |
| 156 | lua_pop(L, 1); /* remove global */ |
| 157 | return p; |
| 158 | } |
| 159 | |
| 160 | |
| 161 | static int incomplete (lua_State *L, int status) { |
no test coverage detected