MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / get_prompt

Function get_prompt

extlibs/lua/src/lua.c:420–426  ·  view source on GitHub ↗

** Returns the string to be used as a prompt by the interpreter. */

Source from the content-addressed store, hash-verified

418** Returns the string to be used as a prompt by the interpreter.
419*/
420static const char *get_prompt (lua_State *L, int firstline) {
421 const char *p;
422 lua_getglobal(L, firstline ? "_PROMPT" : "_PROMPT2");
423 p = lua_tostring(L, -1);
424 if (p == NULL) p = (firstline ? LUA_PROMPT : LUA_PROMPT2);
425 return p;
426}
427
428/* mark in error messages for incomplete statements */
429#define EOFMARK "<eof>"

Callers 1

pushlineFunction · 0.85

Calls 1

lua_getglobalFunction · 0.85

Tested by

no test coverage detected