blob: 4b827640dae463e81af88ecbbbc575ccac299873 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// sys_debug.h -- Definitionen fuer Debugzwecke
4//
5// $Id: sys_debug.h 6081 2006-10-23 14:12:34Z Zesstra $
6
7#ifndef __SYS_DEBUG_H__
8#define __SYS_DEBUG_H__
9
10#define DEBUG(x) printf("DEBUG: OBJ(/%O) %O\n", this_object(), (x))
11
12#define DBG_ON(c) (traceprefix(object_name(this_object())[1..]), trace(c?c:239))
13#define DBG_OFF() (traceprefix(""), trace(0))
14
15#define LFUN 1 // debug lfunc calls
16#define CALL 2 // debug call_other calls
17#define RET 4 // debug return values
18#define ARGS 8 // show arguments when calling a function
19#define STACK 16 // show all stack machine code (DON'T USE!)
20#define HB 32 // show calls to heart_beat()
21#define APPLY 64 // debug calls to apply
22#define NAME 128 // show name of file when debugging (don't use)
23
24#endif