diff options
author | Haru <haru@dotalux.com> | 2013-08-26 20:35:13 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-08-26 20:49:39 +0200 |
commit | 86602bbb645987b8b59588d1d2c74679589f6a7b (patch) | |
tree | f02367148f1dc1b13ad5a2c9662153f53dc203d7 /src/map/script.h | |
parent | 835188124a6e590b406d81803b8d47f07884a9ea (diff) | |
download | hercules-86602bbb645987b8b59588d1d2c74679589f6a7b.tar.gz hercules-86602bbb645987b8b59588d1d2c74679589f6a7b.tar.bz2 hercules-86602bbb645987b8b59588d1d2c74679589f6a7b.tar.xz hercules-86602bbb645987b8b59588d1d2c74679589f6a7b.zip |
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 <haru@dotalux.com>
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |