File: get_compiler_version.cpp

package info (click to toggle)
actor-framework 0.17.6-3.2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 9,008 kB
  • sloc: cpp: 77,684; sh: 674; python: 309; makefile: 13
file content (17 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
using namespace std;

int main() {
#   ifdef __clang__
    cout << __clang_major__
         << "."
         << __clang_minor__;
#   elif defined(__GNUC__)
    cout << __GNUC__
         << "."
         << __GNUC_MINOR__;
#   else
    cout << "0.0";
#   endif
    return 0;
}