Subversion Repositories HelenOS-historic

Rev

Rev 561 | Rev 622 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 561 Rev 581
Line 28... Line 28...
28
 
28
 
29
#ifndef __DEBUG_H__
29
#ifndef __DEBUG_H__
30
#define __DEBUG_H__
30
#define __DEBUG_H__
31
 
31
 
32
#include <panic.h>
32
#include <panic.h>
-
 
33
#include <arch/debug.h>
-
 
34
#include <arch.h>
33
 
35
 
-
 
36
#ifndef CALLER
-
 
37
/**  Default (returns 0) macro for getting address of calling function
-
 
38
 *   @param x First argument of the called function
-
 
39
 */
-
 
40
#  define CALLER(x)       ((__address *) 0)
-
 
41
#endif
-
 
42
 
-
 
43
#ifndef HERE
-
 
44
/** Current Instruction Pointer address */
-
 
45
#  define HERE ((__address *)0)
-
 
46
#endif
34
 
47
 
35
/** Debugging ASSERT macro
48
/** Debugging ASSERT macro
36
 *
49
 *
37
 * If CONFIG_DEBUG is set, the ASSERT() macro
50
 * If CONFIG_DEBUG is set, the ASSERT() macro
38
 * evaluates expr and if it is false raises
51
 * evaluates expr and if it is false raises