diff options
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -97,10 +97,17 @@ Null SV pointer. (No longer available when C<PERL_CORE> is defined.) # define HAS_BOOL 1 #endif -/* cast-to-bool. A simple (bool) cast may not do the right thing: if bool is - * defined as char for example, then the cast from int is - * implementation-defined (bool)!!(cbool) in a ternary triggers a bug in xlc on - * AIX */ +/* +=for apidoc Am|bool|cBOOL|bool expr + +Cast-to-bool. A simple S<C<(bool) I<expr>>> cast may not do the right thing: +if C<bool> is defined as C<char>, for example, then the cast from C<int> is +implementation-defined. + +C<(bool)!!(cbool)> in a ternary triggers a bug in xlc on AIX + +=cut +*/ #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0) /* Try to figure out __func__ or __FUNCTION__ equivalent, if any. |