Search
lxdream.org :: lxdream/src/dream.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/dream.h
changeset 1:eea311cfd33e
next2:42349f6ea216
author nkeynes
date Sat Mar 13 00:03:32 2004 +0000 (16 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.
view annotate diff log raw
     1 /*
     2  * Application-wide declarations
     3  */
     4 #ifndef dream_H
     5 #define dream_H 1
     7 #ifdef __cplusplus
     8 extern "C" {
     9 #if 0
    10 }
    11 #endif
    12 #endif
    14 #define EMIT_FATAL 0
    15 #define EMIT_ERR 1
    16 #define EMIT_WARN 2
    17 #define EMIT_INFO 3
    18 #define EMIT_DEBUG 4
    19 #define EMIT_TRACE 5
    21 #ifndef MODULE_ID
    22 #define MODULE_ID 0
    23 #endif
    25 void emit( int level, int source, char *msg, ... );
    27 #define FATAL( ... ) emit( EMIT_FATAL, MODULE_ID, __VA_ARGS__ )
    28 #define ERROR( ... ) emit( EMIT_ERR, MODULE_ID, __VA_ARGS__ )
    29 #define WARN( ... ) emit( EMIT_WARN, MODULE_ID, __VA_ARGS__ )
    30 #define INFO( ... ) emit( EMIT_INFO, MODULE_ID, __VA_ARGS__ )
    31 #define DEBUG( ... ) emit( EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )
    32 #define TRACE( ... ) emit( EMIT_TRACE, MODULE_ID, __VA_ARGS__ )
    34 #define BIOS_PATH "../bios"
    36 #ifdef __cplusplus
    37 }
    38 #endif
    39 #endif
.