Debian Codegraph @

test cases/d/10 d cpp/cppmain.cpp

raw
1 extern "C" int rt_init();
2 extern "C" int rt_term();
3 extern void print_hello(int i);
4
5 int main(int, char**) {
6 // initialize D runtime
7 if (!rt_init())
8 return 1;
9
10 print_hello(1);
11
12 // terminate D runtime, each initialize call
13 // must be paired with a terminate call.
14 if (!rt_term())
15 return 1;
16
17 return 0;
18 }