diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-05-26 20:59:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-05-26 20:59:55 +0000 |
commit | 9e70cf192e0957e7e8e1e83f3f9f64822a7a96ee (patch) | |
tree | 0f3719130b48bcb33d4f012f6389215bdcf9006c /src/if_mzsch.h | |
parent | 42b9436cf88929bf176d3a812b2840d530c5d522 (diff) | |
download | vim-git-9e70cf192e0957e7e8e1e83f3f9f64822a7a96ee.tar.gz |
updated for version 7.2-191v7.2.191
Diffstat (limited to 'src/if_mzsch.h')
-rw-r--r-- | src/if_mzsch.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/if_mzsch.h b/src/if_mzsch.h index b745cce9e..45888919b 100644 --- a/src/if_mzsch.h +++ b/src/if_mzsch.h @@ -11,6 +11,7 @@ /* #ifdef needed for "make depend" */ #ifdef FEAT_MZSCHEME +# include <schvers.h> # include <scheme.h> #endif @@ -46,4 +47,31 @@ # define scheme_byte_string_to_char_string(obj) (obj) #endif +/* Precise GC macros */ +#ifndef MZ_GC_DECL_REG +# define MZ_GC_DECL_REG(size) /* empty */ +#endif +#ifndef MZ_GC_VAR_IN_REG +# define MZ_GC_VAR_IN_REG(x, v) /* empty */ +#endif +#ifndef MZ_GC_ARRAY_VAR_IN_REG +# define MZ_GC_ARRAY_VAR_IN_REG(x, v, l) /* empty */ +#endif +#ifndef MZ_GC_REG +# define MZ_GC_REG() /* empty */ +#endif +#ifndef MZ_GC_UNREG +# define MZ_GC_UNREG() /* empty */ +#endif + +#ifdef MZSCHEME_FORCE_GC +/* + * force garbage collection to check all references are registered + * seg faults will indicate not registered refs + */ +# define MZ_GC_CHECK() scheme_collect_garbage(); +#else +# define MZ_GC_CHECK() /* empty */ +#endif + #endif /* _IF_MZSCH_H_ */ |