MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / warnfcont

Function warnfcont

third-party/lua-5.4.6/src/lauxlib.c:1088–1097  ·  view source on GitHub ↗

** Writes the message and handle 'tocont', finishing the message ** if needed and setting the next warn function. */

Source from the content-addressed store, hash-verified

1086** if needed and setting the next warn function.
1087*/
1088static void warnfcont (void *ud, const char *message, int tocont) {
1089 lua_State *L = (lua_State *)ud;
1090 lua_writestringerror("%s", message); /* write message */
1091 if (tocont) /* not the last part? */
1092 lua_setwarnf(L, warnfcont, L); /* to be continued */
1093 else { /* last part */
1094 lua_writestringerror("%s", "\n"); /* finish message with end-of-line */
1095 lua_setwarnf(L, warnfon, L); /* next call is a new message */
1096 }
1097}
1098
1099
1100static void warnfon (void *ud, const char *message, int tocont) {

Callers 1

warnfonFunction · 0.70

Calls 1

lua_setwarnfFunction · 0.70

Tested by

no test coverage detected