| 1 |
#ifndef COMMON_H |
| 2 |
#define COMMON_H 1 |
| 3 |
|
| 4 |
/* |
| 5 |
* target-specific code will print in yellow, common code will print |
| 6 |
* in grey. |
| 7 |
*/ |
| 8 |
#ifdef THE_TARGET |
| 9 |
#define ANSI_START "\x1b[33;1m" |
| 10 |
#define ANSI_END "\x1b[0m" |
| 11 |
#else |
| 12 |
#define ANSI_START "" |
| 13 |
#define ANSI_END "" |
| 14 |
#endif |
| 15 |
|
| 16 |
void some_random_function(); |
| 17 |
void initialize_target(); |
| 18 |
|
| 19 |
struct Board { |
| 20 |
Board *next; |
| 21 |
Board(); |
| 22 |
virtual ~Board(); |
| 23 |
virtual void say_hello() = 0; |
| 24 |
virtual const char *target() = 0; |
| 25 |
}; |
| 26 |
|
| 27 |
struct Device { |
| 28 |
Device *next; |
| 29 |
Device(); |
| 30 |
virtual ~Device(); |
| 31 |
virtual void say_hello() = 0; |
| 32 |
}; |
| 33 |
|
| 34 |
struct Dependency { |
| 35 |
Dependency *next; |
| 36 |
Dependency(); |
| 37 |
virtual ~Dependency(); |
| 38 |
virtual void initialize() = 0; |
| 39 |
}; |
| 40 |
|
| 41 |
#endif |