filename | src/dream.h |
changeset | 1:eea311cfd33e |
next | 2:42349f6ea216 |
author | nkeynes |
date | Sat Mar 13 00:03:32 2004 +0000 (20 years ago) |
permissions | -rw-r--r-- |
last change | This commit was generated by cvs2svn to compensate for changes in r2, which included commits to RCS files with non-trunk default branches. |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/src/dream.h Sat Mar 13 00:03:32 2004 +00001.3 @@ -0,0 +1,39 @@1.4 +/*1.5 + * Application-wide declarations1.6 + */1.7 +#ifndef dream_H1.8 +#define dream_H 11.9 +1.10 +#ifdef __cplusplus1.11 +extern "C" {1.12 +#if 01.13 +}1.14 +#endif1.15 +#endif1.16 +1.17 +#define EMIT_FATAL 01.18 +#define EMIT_ERR 11.19 +#define EMIT_WARN 21.20 +#define EMIT_INFO 31.21 +#define EMIT_DEBUG 41.22 +#define EMIT_TRACE 51.23 +1.24 +#ifndef MODULE_ID1.25 +#define MODULE_ID 01.26 +#endif1.27 +1.28 +void emit( int level, int source, char *msg, ... );1.29 +1.30 +#define FATAL( ... ) emit( EMIT_FATAL, MODULE_ID, __VA_ARGS__ )1.31 +#define ERROR( ... ) emit( EMIT_ERR, MODULE_ID, __VA_ARGS__ )1.32 +#define WARN( ... ) emit( EMIT_WARN, MODULE_ID, __VA_ARGS__ )1.33 +#define INFO( ... ) emit( EMIT_INFO, MODULE_ID, __VA_ARGS__ )1.34 +#define DEBUG( ... ) emit( EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )1.35 +#define TRACE( ... ) emit( EMIT_TRACE, MODULE_ID, __VA_ARGS__ )1.36 +1.37 +#define BIOS_PATH "../bios"1.38 +1.39 +#ifdef __cplusplus1.40 +}1.41 +#endif1.42 +#endif
.