trace.c
ds2.9a10/lib/secure/cmds/creators/trace.c · 477 B
From the archive ds2.9a10.zip
Download the archive « Back to the archive contents
#include <lib.h>
#include <daemons.h>
inherit LIB_DAEMON;
mixed cmd(string args) {
int x;
#ifdef __TRACE__
if(!args) args = "0";
x = atoi(args);
if(!archp(previous_object())) return 0;
trace(x);
write("Set tracing level to "+x+".");
#endif
return 1;
}
int help() {
message("help", "Syntax: <trace [level]>\n\n"
"Displays function call tracing to you. See \"man trace\""
" for details on tracing levels.",
this_player());
}