Python code coverage for Python/getcompiler.c
# | count | content |
---|---|---|
1 | n/a | |
2 | n/a | /* Return the compiler identification, if possible. */ |
3 | n/a | |
4 | n/a | #include "Python.h" |
5 | n/a | |
6 | n/a | #ifndef COMPILER |
7 | n/a | |
8 | n/a | #ifdef __GNUC__ |
9 | n/a | #define COMPILER "\n[GCC " __VERSION__ "]" |
10 | n/a | #endif |
11 | n/a | |
12 | n/a | #endif /* !COMPILER */ |
13 | n/a | |
14 | n/a | #ifndef COMPILER |
15 | n/a | |
16 | n/a | #ifdef __cplusplus |
17 | n/a | #define COMPILER "[C++]" |
18 | n/a | #else |
19 | n/a | #define COMPILER "[C]" |
20 | n/a | #endif |
21 | n/a | |
22 | n/a | #endif /* !COMPILER */ |
23 | n/a | |
24 | n/a | const char * |
25 | n/a | Py_GetCompiler(void) |
26 | n/a | { |
27 | n/a | return COMPILER; |
28 | n/a | } |