[Spiderape-cvs] SF.net SVN: spiderape: [49] trunk/src/ape/debuggering_macros.hpp
Status: Beta
Brought to you by:
sgbeal
|
From: <sg...@us...> - 2007-09-29 14:46:39
|
Revision: 49
http://spiderape.svn.sourceforge.net/spiderape/?rev=49&view=rev
Author: sgbeal
Date: 2007-09-29 07:46:38 -0700 (Sat, 29 Sep 2007)
Log Message:
-----------
added SPIDERAPE_CURRENT_FUNCTION macro
Modified Paths:
--------------
trunk/src/ape/debuggering_macros.hpp
Modified: trunk/src/ape/debuggering_macros.hpp
===================================================================
--- trunk/src/ape/debuggering_macros.hpp 2007-09-29 06:17:12 UTC (rev 48)
+++ trunk/src/ape/debuggering_macros.hpp 2007-09-29 14:46:38 UTC (rev 49)
@@ -14,4 +14,21 @@
#endif
+
+// SPIDERAPE_CURRENT_FUNCTION is a "portable" equivalent to __FUNCTION__.
+#ifdef __GNUC__
+# define SPIDERAPE_CURRENT_FUNCTION __PRETTY_FUNCTION__
+#elif defined(__BORLANDC__)
+# define SPIDERAPE_CURRENT_FUNCTION __FUNC__
+#elif defined(_MSC_VER)
+# if _MSC_VER >= 1300 // .NET 2003
+# define SPIDERAPE_CURRENT_FUNCTION __FUNCDNAME__
+# else
+# define SPIDERAPE_CURRENT_FUNCTION __FUNCTION__
+# endif
+#else
+# define SPIDERAPE_CURRENT_FUNCTION __FUNCTION__
+#endif
+
+
#endif // s11n_net_NCJS_DEBUGGERING_MACROS_H
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|