Last change
on this file since 82 was
82,
checked in by rosiere, 16 years ago
|
- support locale (now must "just" translate)
- update all component with new test format
- update all component with usage
- New component : decod queue and prediction_unit
|
-
Property svn:keywords set to
Id
|
File size:
595 bytes
|
Line | |
---|
1 | #ifndef MESSAGE_H |
---|
2 | #define MESSAGE_H |
---|
3 | /* |
---|
4 | * $Id: Message.h 82 2008-05-01 16:48:45Z rosiere $ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | * Routine of Test |
---|
9 | */ |
---|
10 | |
---|
11 | #include <stdio.h> |
---|
12 | #include <string.h> |
---|
13 | #include "Translation.h" |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | |
---|
17 | #define MSG_ERROR _("[ ERROR ]") |
---|
18 | #define MSG_WARNING _("[ WARNING ]") |
---|
19 | #define MSG_INFORMATION _("[INFORMATION]") |
---|
20 | |
---|
21 | #define msg(arg...) \ |
---|
22 | do \ |
---|
23 | { \ |
---|
24 | fprintf(stdout,arg); \ |
---|
25 | } while (0) |
---|
26 | |
---|
27 | #define err(arg...) \ |
---|
28 | do \ |
---|
29 | { \ |
---|
30 | fprintf(stderr,"%s ",MSG_ERROR); \ |
---|
31 | fprintf(stderr,arg); \ |
---|
32 | } while (0) |
---|
33 | |
---|
34 | |
---|
35 | }; // end namespace morpheo |
---|
36 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.