diff options
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1010,9 +1010,9 @@ static int panic (lua_State *L) { | |||
1010 | static void warnf (void *ud, const char *message, int tocont) { | 1010 | static void warnf (void *ud, const char *message, int tocont) { |
1011 | int *warnstate = (int *)ud; | 1011 | int *warnstate = (int *)ud; |
1012 | if (*warnstate != 2 && !tocont && *message == '@') { /* control message? */ | 1012 | if (*warnstate != 2 && !tocont && *message == '@') { /* control message? */ |
1013 | if (strcmp(message + 1, "off") == 0) | 1013 | if (strcmp(message, "@off") == 0) |
1014 | *warnstate = 0; | 1014 | *warnstate = 0; |
1015 | else if (strcmp(message + 1, "on") == 0) | 1015 | else if (strcmp(message, "@on") == 0) |
1016 | *warnstate = 1; | 1016 | *warnstate = 1; |
1017 | return; | 1017 | return; |
1018 | } | 1018 | } |