a63132 | 2002-11-24 | Martin Nilsson | |
#pike __REAL_VERSION__
|
344cae | 2002-10-20 | Martin Nilsson | |
|
8024d8 | 2002-10-31 | Johan Sundström | |
|
344cae | 2002-10-20 | Martin Nilsson | |
|
8024d8 | 2002-10-31 | Johan Sundström | |
|
344cae | 2002-10-20 | Martin Nilsson | |
|
8024d8 | 2002-10-31 | Johan Sundström | |
|
344cae | 2002-10-20 | Martin Nilsson | |
|
8024d8 | 2002-10-31 | Johan Sundström | |
|
2e6e33 | 2015-12-20 | Martin Nilsson | |
|
344cae | 2002-10-20 | Martin Nilsson | |
|
8024d8 | 2002-10-31 | Johan Sundström | |
|
344cae | 2002-10-20 | Martin Nilsson | |
|
8024d8 | 2002-10-31 | Johan Sundström | |
|
344cae | 2002-10-20 | Martin Nilsson | |
|
8024d8 | 2002-10-31 | Johan Sundström | | #define ENTER(X) \
string t = sprintf("%{%O, %}", args); \
werror("%s%s(%s)\n", id, #X, \
|
8a531a | 2006-11-04 | Martin Nilsson | | has_suffix(t, ", ") ? t[..<2] : t)
|
8024d8 | 2002-10-31 | Johan Sundström | |
#define PROXY(X,Y) X(mixed ... args) { ENTER(X); return Y; }
|
344cae | 2002-10-20 | Martin Nilsson | |
|
9eaf1d | 2008-06-28 | Martin Nilsson | | protected string id = "";
|
344cae | 2002-10-20 | Martin Nilsson | |
|
8024d8 | 2002-10-31 | Johan Sundström | | void create(mixed ... args)
{
ENTER(create);
|
344cae | 2002-10-20 | Martin Nilsson | | if(sizeof(args)==1 && stringp(args[0]))
id = "(" + args[0] + ") ";
}
|
4d18f6 | 2002-10-21 | Marek Habersack | | void PROXY(destroy, 0);
mixed PROXY(`->, 0);
mixed PROXY(`->=, 0);
mixed PROXY(`[], 0);
mixed PROXY(`[]=, 0);
mixed PROXY(`+, 0);
mixed PROXY(`-, 0);
mixed PROXY(`&, 0);
mixed PROXY(`|, 0);
mixed PROXY(`^, 0);
mixed PROXY(`<<, 0);
mixed PROXY(`>>, 0);
mixed PROXY(`*, 0);
mixed PROXY(`/, 0);
mixed PROXY(`%, 0);
mixed PROXY(`~, 0);
int(0..1) PROXY(`==, 0);
int(0..1) PROXY(`<, 0);
int(0..1) PROXY(`>, 0);
int PROXY(`!, 0);
int PROXY(__hash, 0);
int PROXY(_sizeof, 0);
mixed PROXY(cast, 0);
mixed PROXY(`(), 0);
mixed PROXY(``+, 0);
mixed PROXY(``-, 0);
mixed PROXY(``&, 0);
mixed PROXY(``|, 0);
mixed PROXY(``^, 0);
mixed PROXY(``<<, 0);
mixed PROXY(``>>, 0);
mixed PROXY(``*, 0);
mixed PROXY(``/, 0);
mixed PROXY(``%, 0);
mixed PROXY(`+=, 0);
int(0..1) PROXY(_is_type, 0);
int PROXY(_equal, 0);
mixed PROXY(_m_delete, 0);
|
a4aae5 | 2002-11-06 | Martin Nilsson | |
array PROXY(_indices, ::_indices());
array PROXY(_values, ::_values());
|
344cae | 2002-10-20 | Martin Nilsson | |
|
8024d8 | 2002-10-31 | Johan Sundström | | object _get_iterator(mixed ... args)
{
ENTER(_get_iterator);
|
8a531a | 2006-11-04 | Martin Nilsson | | string iid = id==""?"":id[1..<2];
|
344cae | 2002-10-20 | Martin Nilsson | | return this_program("("+iid+" iterator) ");
}
|
8024d8 | 2002-10-31 | Johan Sundström | | string _sprintf(int|void t, mapping|void opt, mixed ... x)
{
string args = "";
if(t)
args += sprintf("'%c'", t);
|
2e6e33 | 2015-12-20 | Martin Nilsson | | if(opt)
|
8024d8 | 2002-10-31 | Johan Sundström | | {
string tmp = sprintf("%O", opt);
|
2e6e33 | 2015-12-20 | Martin Nilsson | | string a,b; int c;
if( sscanf(tmp, "%s /* 1 element */%s", a, b)==2 ||
sscanf(tmp, "%s /* %d elements */%s", a, c, b)==3 )
tmp = a+b;
args += sprintf(", %s", String.normalize_space(tmp));
|
8024d8 | 2002-10-31 | Johan Sundström | | }
string tmp = sprintf("%{%O, %}", x);
if(has_suffix(tmp, ", "))
|
8a531a | 2006-11-04 | Martin Nilsson | | tmp = tmp[..<2];
|
8024d8 | 2002-10-31 | Johan Sundström | | if(sizeof(tmp))
args += ", " + tmp;
werror("%s_sprintf(%s)\n", id, args);
|
8a531a | 2006-11-04 | Martin Nilsson | | return "Debug.Subject" + id[..<1];
|
344cae | 2002-10-20 | Martin Nilsson | | }
|
4d18f6 | 2002-10-21 | Marek Habersack | | mixed PROXY(_random, 0);
|