summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2015-04-04 12:49:27 -0600
committerTony Cook <tony@develop-help.com>2015-06-02 15:10:37 +1000
commit31ada1fbe5f99b57f19d888d2681aa42d8b87898 (patch)
tree5af7d5e183e15dc2a9268cf050d0d664e00cfb11 /perl.h
parent440568ac3ea48995957904d59ba142ce1ae72d90 (diff)
downloadperl-31ada1fbe5f99b57f19d888d2681aa42d8b87898.tar.gz
fix XXX on DEBUG_TOP_FLAG comment
DEBUG_TOP_FLAG is ORd into PL_debug when -D option is used, so that "if (PL_debug)" can be used, w/o also enabling (or requiring) any specific DEBUG_(.)_FLAGs. It is used in Perl_runops_debug to short-circuit several DEBUG_(.)_TESTs.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index dcb184bf2a..0f6f679bea 100644
--- a/perl.h
+++ b/perl.h
@@ -4007,8 +4007,7 @@ Gid_t getegid (void);
#define DEBUG_MASK 0x07FFEFFF /* mask of all the standard flags */
#define DEBUG_DB_RECURSE_FLAG 0x40000000
-#define DEBUG_TOP_FLAG 0x80000000 /* XXX what's this for ??? Signal
- that something was done? */
+#define DEBUG_TOP_FLAG 0x80000000 /* -D was given --> PL_debug |= FLAG */
# define DEBUG_p_TEST_ (PL_debug & DEBUG_p_FLAG)
# define DEBUG_s_TEST_ (PL_debug & DEBUG_s_FLAG)