Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-07-10
2000-07-10 17:40:03 by Martin Nilsson <mani@lysator.liu.se>
86ae6f570c458652b0801d8532dc764268ac53a5 (
14
lines) (+
4
/-
10
)
[
Show
|
Annotate
]
Branch:
5.2
Obfuscate with some convenient macros
Rev: server/base_server/roxen.pike:1.501
4:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others. // ABS and suicide systems contributed freely by Francesco Chemolli
-
constant cvs_version="$Id: roxen.pike,v 1.
500
2000/07/
09
21
:
02
:
06
nilsson Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
501
2000/07/
10
17
:
40
:
03
nilsson Exp $";
// Used when running threaded to find out which thread is the backend thread, // for debug purposes only.
339:
// ----------- Locale support ------------ //<locale-token project="base_server">LOCALE</locale-token>
-
static
object getlocobj
()
{
-
return
locale->get
()
->base_server;
-
}
+
LOCALE_PROJECT(base_server);
+
#define
LOCALE
(
X,Y
)
LOW_LOCALE
(
X,Y
)
-
#if constant(Locale.translate)
-
# define LOCALE(X,Y) ([string](mixed)Locale.DeferredLocale(getlocobj,X,Y))
-
#else
-
# define LOCALE(X,Y) ([string](mixed)RoxenLocale.DeferredLocale(getlocobj,X,Y))
-
#endif
-
+
string default_locale; #if constant( thread_local )