Search
lxdream.org :: lxdream/src/dream.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/dream.h
changeset 2:42349f6ea216
prev1:eea311cfd33e
next9:2784c7660165
author nkeynes
date Sun Dec 12 07:44:49 2004 +0000 (19 years ago)
permissions -rw-r--r--
last change Rename reg_map to sh4_reg_map
view annotate diff log raw
     1 /*
     2  * Application-wide declarations
     3  */
     4 #ifndef dream_H
     5 #define dream_H 1
     7 #include <stdint.h>
     9 #ifdef __cplusplus
    10 extern "C" {
    11 #if 0
    12 }
    13 #endif
    14 #endif
    16 #define EMIT_FATAL 0
    17 #define EMIT_ERR 1
    18 #define EMIT_WARN 2
    19 #define EMIT_INFO 3
    20 #define EMIT_DEBUG 4
    21 #define EMIT_TRACE 5
    23 #ifndef MODULE_ID
    24 #define MODULE_ID 0
    25 #endif
    27 void emit( int level, int source, char *msg, ... );
    29 #define FATAL( ... ) emit( EMIT_FATAL, MODULE_ID, __VA_ARGS__ )
    30 #define ERROR( ... ) emit( EMIT_ERR, MODULE_ID, __VA_ARGS__ )
    31 #define WARN( ... ) emit( EMIT_WARN, MODULE_ID, __VA_ARGS__ )
    32 #define INFO( ... ) emit( EMIT_INFO, MODULE_ID, __VA_ARGS__ )
    33 #define DEBUG( ... ) emit( EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )
    34 #define TRACE( ... ) emit( EMIT_TRACE, MODULE_ID, __VA_ARGS__ )
    36 #define BIOS_PATH "../bios"
    38 #ifdef __cplusplus
    39 }
    40 #endif
    41 #endif
.