pike.git/
lib/
master.pike.in
Branch:
Tag:
Non-build tags
All tags
No tags
2003-12-01
2003-12-01 18:03:10 by Martin Nilsson <mani@lysator.liu.se>
100c3e2db5897813f97e88822255138ffd5152c2 (
13
lines) (+
12
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added resolv_or_error
Rev: lib/master.pike.in:1.312
6:
// Pike is distributed under GPL, LGPL and MPL. See the file COPYING // for more information. //
-
// $Id: master.pike.in,v 1.
311
2003/
11
/
18
11
:03:
45
mast
Exp $
+
// $Id: master.pike.in,v 1.
312
2003/
12
/
01
18:03:
10
nilsson
Exp $
#pike __REAL_VERSION__
2002:
return get_root_module(current_handler)[identifier]; }
+
//! Same as @[resolv], but throws an error instead of returning
+
//! @[UNDEFINED] if the resolv failed.
+
mixed resolv_or_error(string identifier, string|void current_file,
+
void|object current_handler)
+
{
+
mixed res = resolv(identifier, current_file, current_handler);
+
if(zero_type(res)) error("Could not resolv %s.\n", identifier);
+
return res;
+
}
+
//! mixed resolv(string identifier, string|void current_file, object|void current_handler)