diff options
Diffstat (limited to 'src/hooks.h')
-rw-r--r-- | src/hooks.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/hooks.h b/src/hooks.h index 0c83cf84..8ea87bc3 100644 --- a/src/hooks.h +++ b/src/hooks.h @@ -2,6 +2,10 @@ #include "angband.h" +#ifdef __cplusplus +extern "C" { +#endif + extern FILE *hook_file; extern void wipe_hooks(void); extern void init_hooks(void); @@ -13,6 +17,10 @@ extern char* get_next_arg_str(const char *fmt); extern object_type *get_next_arg_obj(); extern int process_hooks_restart; extern hook_return process_hooks_return[20]; -extern bool_ process_hooks_ret(int h_idx, char *ret, char *fmt, ...); -extern bool_ process_hooks(int h_idx, char *fmt, ...); +extern bool_ process_hooks_ret(int h_idx, const char *ret, const char *fmt, ...); +extern bool_ process_hooks(int h_idx, const char *fmt, ...); extern bool_ process_hooks_new(int h_idx, void *in, void *out); + +#ifdef __cplusplus +} // extern "C" +#endif |