Debian Codegraph @

test cases/common/215 source set realistic example/boards/x86/pc.cc

raw
1 #include <iostream>
2 #include "common.h"
3
4 struct X86Board: Board {
5 const char *target();
6 void say_hello();
7 };
8
9 const char *X86Board::target()
10 {
11 return THE_TARGET;
12 }
13
14 void X86Board::say_hello()
15 {
16 std::cout << ANSI_START << "I am a 1996 PC"
17 << ANSI_END << std::endl;
18 }
19
20 void initialize_target()
21 {
22 std::cout << ANSI_START << "ready, set, go"
23 << ANSI_END << std::endl;
24 }
25
26 static X86Board pc;