Lines Matching defs:message
232 ** an error with "stack overflow" instead of the given message.)
376 ** extra slots to format the error message. In case of an error without
1040 ** warnfon: ready to start a new message
1041 ** warnfcont: previous message is to be continued
1043 static void warnfoff (void *ud, const char *message, int tocont);
1044 static void warnfon (void *ud, const char *message, int tocont);
1045 static void warnfcont (void *ud, const char *message, int tocont);
1049 ** Check whether message is a control message. If so, execute the
1052 static int checkcontrol (lua_State *L, const char *message, int tocont) {
1053 if (tocont || *(message++) != '@') /* not a control message? */
1056 if (strcmp(message, "off") == 0)
1058 else if (strcmp(message, "on") == 0)
1060 return 1; /* it was a control message */
1065 static void warnfoff (void *ud, const char *message, int tocont) {
1066 checkcontrol((lua_State *)ud, message, tocont);
1071 ** Writes the message and handle 'tocont', finishing the message
1074 static void warnfcont (void *ud, const char *message, int tocont) {
1076 lua_writestringerror("%s", message); /* write message */
1080 lua_writestringerror("%s", "\n"); /* finish message with end-of-line */
1081 lua_setwarnf(L, warnfon, L); /* next call is a new message */
1086 static void warnfon (void *ud, const char *message, int tocont) {
1087 if (checkcontrol((lua_State *)ud, message, tocont)) /* control message? */
1090 warnfcont(ud, message, tocont); /* finish processing */