blob: 6a65287c2f1e0f7044255eb3c852dcadc147ea17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* Creation Date: <1999/03/20 07:38:38 samuel>
* Time-stamp: <2002/07/20 19:29:22 samuel>
*
* <logger.h>
*
* Interface to some logging functions
*
* Copyright (C) 1999, 2002 Samuel Rydh (samuel@ibrium.se)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation
*
*/
#ifndef __LOGGER_H_
#define __LOGGER_H_
#include <Types.h>
#define DBG(x) do {x;} while(0)
#ifdef DEBUG_OSI
extern void lprintf( char *fmt,... );
extern OSStatus CheckStatus( OSStatus value, char *message);
#else
static inline void lprintf( char *fmt,... ) { }
static inline OSStatus CheckStatus( OSStatus value, char *message) { return value; }
#endif
#endif
|