+#if defined(_MSC_EXTENSIONS)\r
+ //\r
+ // Intrinsic function provides the address of the instruction in the calling\r
+ // function that will be executed after control returns to the caller.\r
+ //\r
+ #pragma intrinsic(_ReturnAddress)\r
+ #define RETURN_ADDRESS(L) ((L == 0) ? _ReturnAddress() : (VOID *) 0)\r
+#elif defined(__GNUC__)\r
+ //\r
+ // Built-in Function returns the return address of the current function,\r
+ // or of one of its callers.\r
+ //\r
+ void * __builtin_return_address (unsigned int level);\r
+ #define RETURN_ADDRESS(L) __builtin_return_address (L)\r
+#else\r
+ //\r
+ // Compilers don't support this feature.\r
+ //\r
+ #define RETURN_ADDRESS(L) ((VOID *) 0)\r
+#endif\r
+\r