diff options
author | Ben Morrow <ben@morrow.me.uk> | 2009-12-09 10:32:23 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-07-12 10:40:48 +0200 |
commit | fd85fad2cd9375073457ad3f1e13e90d7d79f23f (patch) | |
tree | c167607558e9e545aaf2301a551b6341ee3cfb05 /op.h | |
parent | 5afac1ebc358bec5c061fc10d4c7122f0efebb22 (diff) | |
download | perl-fd85fad2cd9375073457ad3f1e13e90d7d79f23f.tar.gz |
Document the blockhook functions and macros.
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -653,6 +653,30 @@ struct block_hooks { void (*bhk_eval) (pTHX_ OP *const saveop); }; +/* +=head1 Compile-time scope hooks + +=for apidoc m|U32|BhkFLAGS|BHK *hk +Return the BHK's flags. + +=for apidoc m|void *|BhkENTRY|BHK *hk|which +Return an entry from the BHK structure. I<which> is a preprocessor token +indicating which entry to return. If the appropriate flag is not set +this will return NULL. The type of the return value depends on which +entry you ask for. + +=for apidoc Am|void|BhkENTRY_set|BHK *hk|which|void *ptr +Set an entry in the BHK structure, and set the flags to indicate it is +valid. I<which> is a preprocessing token indicating which entry to set. +The type of I<ptr> depends on the entry. + +=for apidoc m|void|CALL_BLOCK_HOOKS|which|arg +Call all the registered block hooks for type I<which>. I<which> is a +preprocessing token; the type of I<arg> depends on I<which>. + +=cut +*/ + #define BhkFLAGS(hk) ((hk)->bhk_flags) #define BHKf_start 0x01 |