Did you actually compile any of this?


+#define abort() DebugBreak(); +#define assert(x) if (!(x)) DebugBreak; + #endif /*APR_PRIVATE_H*/ #endif /*WIN32*/

Should be:

 #define abort() DebugBreak()
 #define assert(x) if ((x)); else DebugBreak()


Note the lack of semicolons at the end of the macro expansions, and the change to avoid the dangling else problem.



+#ifdef APR_POOL_DEBUG
+#define APR_STRINGIFY(S) APR_REALLY_STRINGIFY(S)
+#define APR_REALLY_STRINGIFY(S) #S
+#endif

Here you define APR_STRINGIFY, ...


+#if defined(APR_POOL_DEBUG) +#define apr_pool_alloc_init(p) \ + (apr_pool_alloc_init)(p, #p " (" STRINGIFY(__LINE__) ") " __FILE__) +#else

... but use STRINGIFY later on.

Naughty, naughty.


-- Brane Čibej home: <[EMAIL PROTECTED]> http://www.xbc.nu/brane/ work: <[EMAIL PROTECTED]> http://www.hermes-softlab.com/ ACM : <[EMAIL PROTECTED]> http://www.acm.org/





Reply via email to