Search
lxdream.org :: lxdream/src/dream.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/dream.h
changeset 9:2784c7660165
prev2:42349f6ea216
next26:ad258e3daaa5
author nkeynes
date Thu Dec 08 13:38:00 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Generalise the core debug window to allow multiple instances.
Add cpu description structure to define different cpus for use by the
debug window, in preparation for ARM implementation
view annotate diff log raw
     1 /*
     2  * Application-wide declarations
     3  */
     4 #ifndef dream_H
     5 #define dream_H 1
     7 #include <stdlib.h>
     8 #include <stdint.h>
     9 #include <string.h>
    11 #ifdef __cplusplus
    12 extern "C" {
    13 #if 0
    14 }
    15 #endif
    16 #endif
    18 #define EMIT_FATAL 0
    19 #define EMIT_ERR 1
    20 #define EMIT_WARN 2
    21 #define EMIT_INFO 3
    22 #define EMIT_DEBUG 4
    23 #define EMIT_TRACE 5
    25 #ifndef MODULE_ID
    26 #define MODULE_ID 0
    27 #endif
    29 void emit( void *, int level, int source, char *msg, ... );
    31 #define FATAL( ... ) emit( NULL, EMIT_FATAL, MODULE_ID, __VA_ARGS__ )
    32 #define ERROR( ... ) emit( NULL, EMIT_ERR, MODULE_ID, __VA_ARGS__ )
    33 #define WARN( ... ) emit( NULL, EMIT_WARN, MODULE_ID, __VA_ARGS__ )
    34 #define INFO( ... ) emit( NULL, EMIT_INFO, MODULE_ID, __VA_ARGS__ )
    35 #define DEBUG( ... ) emit( NULL, EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )
    36 #define TRACE( ... ) emit( NULL, EMIT_TRACE, MODULE_ID, __VA_ARGS__ )
    38 #define BIOS_PATH "../bios"
    40 #ifdef __cplusplus
    41 }
    42 #endif
    43 #endif
.