Roxen.git / server / etc / include / roxen.h

version» Context lines:

Roxen.git/server/etc/include/roxen.h:1:   // -*- pike -*-   // - // $Id: roxen.h,v 1.27 2003/11/25 17:02:04 anders Exp $ + // $Id: roxen.h,v 1.28 2004/04/21 16:02:49 mast Exp $      #ifndef _ROXEN_H_      #define _ROXEN_H_   #include <config.h>   #define HOST_TO_IP 'H'   #define IP_TO_HOST 'I'      // Localization support   
Roxen.git/server/etc/include/roxen.h:29:   #endif /* !_DEF_LOCALE */      #ifndef _LOCALE_FUN   #define _LOCALE_FUN(X, Y, Z) Locale.call(X, __LOCALE(), Y, Z)   #endif /* !_LOCALE_FUN */      // Debug macros.      #ifdef DEBUG   #define DO_IF_DEBUG(X...) X + #define ASSERT_IF_DEBUG(TEST, ARGS...) do { \ +  if (!(TEST)) error ("Assertion failed: " #TEST, ARGS); \ +  } while (0)   #else   #define DO_IF_DEBUG(X...) -  + #define ASSERT_IF_DEBUG(TEST, ARGS...) do {} while (0)   #endif      #ifdef DEBUG_CACHEABLE   # define CACHE(seconds) do { \    int old_cacheable = ([mapping(string:mixed)]id->misc)->cacheable; \    ([mapping(string:mixed)]id->misc)->cacheable = \    min(([mapping(string:mixed)]id->misc)->cacheable,seconds); \    report_debug("%s:%d lowered cacheable to %d (was: %d, now: %d)\n", \    __FILE__, __LINE__, seconds, old_cacheable, \    ([mapping(string:mixed)]id->misc)->cacheable); \