summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2005-07-11 18:29:46 +0300
committerDave Mitchell <davem@fdisolutions.com>2005-07-12 18:46:34 +0000
commite352bcff231c07cf21f07ae801f374a3da3229ed (patch)
tree362ddec7569a75cf6e103cb1babaf1bffa4929b8 /handy.h
parent282e17420839364a06808f9f85ab641c510d8296 (diff)
downloadperl-e352bcff231c07cf21f07ae801f374a3da3229ed.tar.gz
Make PERL_MEM_LOG more portable.
Message-Id: <42D2663A.4050204@gmail.com> p4raw-id: //depot/perl@25128
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/handy.h b/handy.h
index 106996d556..681290e259 100644
--- a/handy.h
+++ b/handy.h
@@ -88,7 +88,9 @@ Null SV pointer.
#endif
/* Try to figure out __func__ or __FUNCTION__ equivalent, if any.
- * XXX Should really be a Configure probe. */
+ * XXX Should really be a Configure probe, with HAS__FUNCTION__
+ * and FUNCTION__ as results.
+ * XXX Similarly, a Configure probe for __FILE__ and __LINE__ is needed. */
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || (defined(__SUNPRO_C)) /* C99 or close enough. */
# define FUNCTION__ __func__
#else
@@ -642,9 +644,9 @@ hopefully catches attempts to access uninitialized memory.
* If PERL_MEM_LOG is defined, all Newx()s, Renew()s, and Safefree()s
* go through functions, which are handy for debugging breakpoints, but
* which more importantly get the immediate calling environment (file and
- * line number) passed in. This can then be used for logging the calls,
- * for which one can get a sample implementation if PERL_MEM_LOG_STDERR
- * is defined.
+ * line number, and C function name if available) passed in. This info can
+ * then be used for logging the calls, for which one gets a sample
+ * implementation if PERL_MEM_LOG_STDERR is defined.
*
* Known problems:
* - all memory allocs do not get logged, only those