d05f9c | // $Id: roxen.h,v 1.12 2000/07/11 01:46:03 nilsson Exp $ | |||
b1fca0 | #ifndef _ROXEN_H_ | |||
b87896 | ||||
b1fca0 | #define _ROXEN_H_ #include <config.h> #define HOST_TO_IP 'H' #define IP_TO_HOST 'I' | |||
ff66f7 | #define perror roxen_perror | |||
0e7808 | // Localization support | |||
d05f9c | #ifndef _DEF_LOCALE | |||
d84688 | # if constant(Locale.translate) | |||
d05f9c | # define _DEF_LOCALE(X,Y) ([string](mixed)Locale.DeferredLocale(GETLOCOBJ,X,Y)) | |||
d84688 | # else | |||
d05f9c | # define _DEF_LOCALE(X,Y) ([string](mixed)RoxenLocale.DeferredLocale(GETLOCOBJ,X,Y)) # endif #endif #ifndef _STR_LOCALE # if constant(Locale.translate) # ifdef IN_ROXEN # define _STR_LOCALE(Z,X,Y) (Locale.translate(locale->get()->Z, X, Y)) # else # define _STR_LOCALE(Z,X,Y) (Locale.translate(roxen.locale->get()->Z, X, Y)) # endif # else # ifdef IN_ROXEN # define _STR_LOCALE(Z,X,Y) (RoxenLocale.translate(locale->get()->Z, X, Y)) # else # define _STR_LOCALE(Z,X,Y) (RoxenLocale.translate(roxen.locale->get()->Z, X, Y)) # endif # endif #endif #ifndef LOCALE_PROJECT | |||
d84688 | # ifdef IN_ROXEN | |||
d05f9c | # define LOCALE_PROJECT(X) static inline object GETLOCOBJ() {return locale->get()->X;} | |||
d84688 | # else | |||
d05f9c | # define LOCALE_PROJECT(X) static inline object GETLOCOBJ() {return roxen.locale->get()->X;} # endif #endif | |||
0e7808 | ||||
b87896 | #endif /* _ROXEN_H_ */ |