Add save_dllvar() function exported to modules

This helper function is for modules to save the contents of their module variables to a file
as SET commands.

It will remove the need to export the raw dll_variable list to modules.
This commit is contained in:
Kevin Easton
2017-11-06 16:54:51 +11:00
parent 4b8ffbc52a
commit 3f047ab2a9
4 changed files with 35 additions and 1 deletions

View File

@@ -463,6 +463,7 @@ extern Function_ptr *global;
#define set_dllint_var (*(void (*)(char *, unsigned int ))global[SET_DLLINT_VAR])
#define get_dllstring_var (*(char *(*)(char *))global[GET_DLLSTRING_VAR])
#define set_dllstring_var (*(void (*)(char *, char *))global[SET_DLLSTRING_VAR])
#define save_dllvar (*(void (*)(FILE *, char *))global[SAVE_DLLVAR])
#define get_int_var (*(int (*)(enum VAR_TYPES ))global[GET_INT_VAR])
#define set_int_var (*(void (*)(enum VAR_TYPES , unsigned int ))global[SET_INT_VAR])