From 86602bbb645987b8b59588d1d2c74679589f6a7b Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 26 Aug 2013 20:35:13 +0200 Subject: Added support for non-fatal error messages from the script parser - Changed overflow errors to be non-fatal. The value will now be capped to INT_MAX or INT_MIN. - Follow-up to 8351881 Signed-off-by: Haru --- src/map/script.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/script.h') diff --git a/src/map/script.h b/src/map/script.h index 774101eb3..bcdd1fdaf 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -362,6 +362,7 @@ struct script_interface { const char* (*parse_subexpr) (const char* p,int limit); const char* (*skip_space) (const char* p); void (*error) (const char* src, const char* file, int start_line, const char* error_msg, const char* error_pos); + void (*warning) (const char* src, const char* file, int start_line, const char* error_msg, const char* error_pos); /* */ bool (*addScript) (char *name, char *args, bool (*func)(struct script_state *st)); int (*conv_num) (struct script_state *st,struct script_data *data); -- cgit v1.2.3-60-g2f50