** Prints an error message, adding the program name in front of it ** (if present) */
| 33 | ** (if present) |
| 34 | */ |
| 35 | static void ll_message(lua_State *L, const char *pname, const char *msg) { |
| 36 | if (pname) luaL_writestringerror(L, "%s: ", pname); |
| 37 | luaL_writestringerror(L, "%s\n", msg); |
| 38 | } |
| 39 | |
| 40 | /* |
| 41 | ** Hook set by signal function to stop the interpreter. |