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:
@@ -16,6 +16,18 @@
|
|||||||
# define __out dprintf
|
# define __out dprintf
|
||||||
#endif
|
#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:
|
// Short overview over the debug output macros:
|
||||||
// PRINT()
|
// PRINT()
|
||||||
// is for general messages that very unlikely should appear in a release build
|
// is for general messages that very unlikely should appear in a release build
|
||||||
|
|||||||
@@ -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 operator!=(const block_run &run) const;
|
inline bool operator!=(const block_run &run) const;
|
||||||
inline bool IsZero();
|
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;
|
typedef block_run inode_addr;
|
||||||
|
|||||||
Reference in New Issue
Block a user