Last change
on this file since 84 was
83,
checked in by rosiere, 16 years ago
|
Add component : Context_State (manage miss prediction, exception , decod_enable, synchronisation instruction ...)
|
-
Property svn:keywords set to
Id
|
File size:
553 bytes
|
Rev | Line | |
---|
[71] | 1 | #ifndef MESSAGE_H |
---|
| 2 | #define MESSAGE_H |
---|
[2] | 3 | /* |
---|
| 4 | * $Id: Message.h 83 2008-05-09 18:00:21Z rosiere $ |
---|
| 5 | * |
---|
[71] | 6 | * [ Description ] |
---|
[2] | 7 | * |
---|
| 8 | * Routine of Test |
---|
| 9 | */ |
---|
| 10 | |
---|
[71] | 11 | #include <stdio.h> |
---|
| 12 | #include <string.h> |
---|
[82] | 13 | #include "Translation.h" |
---|
[2] | 14 | |
---|
[71] | 15 | namespace morpheo { |
---|
| 16 | |
---|
[82] | 17 | #define MSG_ERROR _("[ ERROR ]") |
---|
| 18 | #define MSG_WARNING _("[ WARNING ]") |
---|
| 19 | #define MSG_INFORMATION _("[INFORMATION]") |
---|
[71] | 20 | |
---|
[82] | 21 | #define msg(arg...) \ |
---|
| 22 | do \ |
---|
| 23 | { \ |
---|
| 24 | fprintf(stdout,arg); \ |
---|
| 25 | } while (0) |
---|
[71] | 26 | |
---|
[82] | 27 | #define err(arg...) \ |
---|
| 28 | do \ |
---|
| 29 | { \ |
---|
| 30 | fprintf(stderr,arg); \ |
---|
| 31 | } while (0) |
---|
| 32 | |
---|
| 33 | |
---|
[2] | 34 | }; // end namespace morpheo |
---|
[71] | 35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.