diff options
author | Andy Wingo <wingo@pobox.com> | 2018-09-14 08:42:41 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-09-14 08:52:24 +0200 |
commit | bf31fe4cf6d75c96cc4ef29fea8808dd539da361 (patch) | |
tree | 31e180ad8951d60c87ae3f91b2cf0525f2a99f62 /libguile/simpos.h | |
parent | ce5c05ac4aa105a8a7b855c6cb5d811ef672cf5b (diff) | |
download | guile-bf31fe4cf6d75c96cc4ef29fea8808dd539da361.tar.gz |
VM manages hook sets itself
* libguile/vm.h (SCM_VM_ABORT_HOOK): Rename from
SCM_VM_ABORT_CONTINUATION_HOOK.
* libguile/vm-engine.c (ABORT_HOOK):
* libguile/vm.c (invoke_abort_hook): Adapt to SCM_VM_ABORT_HOOK name
change.
(reset_vm_hook_enabled): New helper.
(VM_ADD_HOOK, VM_REMOVE_HOOK): New helper macros, replacing
VM_DEFINE_HOOK.
(scm_vm_add_abort_hook_x, scm_vm_remove_abort_hook_x)
(scm_vm_add_apply_hook_x, scm_vm_remove_apply_hook_x)
(scm_vm_add_return_hook_x, scm_vm_remove_return_hook_x)
(scm_vm_add_next_hook_x, scm_vm_remove_next_hook_x): New functions,
replacing direct access to the hooks. Allows us to know in a more
fine-grained way when to enable hooks.
(scm_set_vm_trace_level_x): Use reset_vm_hook_enabled to update the
individual hook_enabled flags.
* module/statprof.scm:
* module/system/vm/coverage.scm:
* module/system/vm/traps.scm:
* module/system/vm/vm.scm: Adapt VM hook users to the new API.
Diffstat (limited to 'libguile/simpos.h')
0 files changed, 0 insertions, 0 deletions