Add a new DEBUGGER() macro (doesn't do anything for the release build).

Some style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1601 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2002-10-22 17:48:29 +00:00
parent 05f02d9b9a
commit e891a05e6e
2 changed files with 15 additions and 2 deletions
@@ -16,6 +16,18 @@
# define __out dprintf
#endif
// Which debugger should be used when?
// The DEBUGGER() macro actually has no effect if DEBUG is not defined...
#ifdef DEBUG
# ifdef USER
# define DEBUGGER(x) debugger x
# else
# define DEBUGGER(x) kernel_debugger x
# endif
#else
# define DEBUGGER(x) ;
#endif
// Short overview over the debug output macros:
// PRINT()
// is for general messages that very unlikely should appear in a release build
+3 -2
View File
@@ -26,9 +26,10 @@ struct block_run
inline bool operator==(const block_run &run) const;
inline bool operator!=(const block_run &run) const;
inline bool IsZero();
inline void SetTo(int32 group,uint16 start,uint16 length = 1);
inline void SetTo(int32 group, uint16 start, uint16 length = 1);
inline static block_run Run(int32 group,uint16 start,uint16 length = 1);
inline static block_run Run(int32 group, uint16 start, uint16 length = 1);
// can't have a constructor because it's used in a union
};
typedef block_run inode_addr;