g2o
Macros | Functions | Variables
CMakeCXXCompilerId.cpp File Reference

Go to the source code of this file.

Macros

#define COMPILER_ID   ""
 
#define STRINGIFY_HELPER(X)   #X
 
#define STRINGIFY(X)   STRINGIFY_HELPER(X)
 
#define PLATFORM_ID
 
#define ARCHITECTURE_ID
 
#define DEC(n)
 
#define HEX(n)
 

Functions

int main (int argc, char *argv[])
 

Variables

char const * info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"
 
char const * info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"
 
char const * info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"
 
const char * info_language_dialect_default
 

Macro Definition Documentation

#define ARCHITECTURE_ID

Definition at line 434 of file CMakeCXXCompilerId.cpp.

#define COMPILER_ID   ""

Definition at line 267 of file CMakeCXXCompilerId.cpp.

#define DEC (   n)
Value:
('0' + (((n) / 10000000)%10)), \
('0' + (((n) / 1000000)%10)), \
('0' + (((n) / 100000)%10)), \
('0' + (((n) / 10000)%10)), \
('0' + (((n) / 1000)%10)), \
('0' + (((n) / 100)%10)), \
('0' + (((n) / 10)%10)), \
('0' + ((n) % 10))

Definition at line 438 of file CMakeCXXCompilerId.cpp.

#define HEX (   n)
Value:
('0' + ((n)>>28 & 0xF)), \
('0' + ((n)>>24 & 0xF)), \
('0' + ((n)>>20 & 0xF)), \
('0' + ((n)>>16 & 0xF)), \
('0' + ((n)>>12 & 0xF)), \
('0' + ((n)>>8 & 0xF)), \
('0' + ((n)>>4 & 0xF)), \
('0' + ((n) & 0xF))

Definition at line 449 of file CMakeCXXCompilerId.cpp.

#define PLATFORM_ID

Definition at line 384 of file CMakeCXXCompilerId.cpp.

#define STRINGIFY (   X)    STRINGIFY_HELPER(X)

Definition at line 288 of file CMakeCXXCompilerId.cpp.

#define STRINGIFY_HELPER (   X)    #X

Definition at line 287 of file CMakeCXXCompilerId.cpp.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 519 of file CMakeCXXCompilerId.cpp.

References info_compiler, info_language_dialect_default, and info_platform.

520 {
521  int require = 0;
522  require += info_compiler[argc];
523  require += info_platform[argc];
524 #ifdef COMPILER_VERSION_MAJOR
525  require += info_version[argc];
526 #endif
527 #ifdef SIMULATE_ID
528  require += info_simulate[argc];
529 #endif
530 #ifdef SIMULATE_VERSION_MAJOR
531  require += info_simulate_version[argc];
532 #endif
533 #if defined(__CRAYXE) || defined(__CRAYXC)
534  require += info_cray[argc];
535 #endif
536  require += info_language_dialect_default[argc];
537  (void)argv;
538  return require;
539 }
char const * info_compiler
const char * info_language_dialect_default
char const * info_platform

Variable Documentation

char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"

Definition at line 500 of file CMakeCXXCompilerId.cpp.

char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"

Definition at line 274 of file CMakeCXXCompilerId.cpp.

Referenced by main().

const char* info_language_dialect_default
Initial value:
= "INFO" ":" "dialect_default["
"98"
"]"

Definition at line 505 of file CMakeCXXCompilerId.cpp.

Referenced by main().

char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"

Definition at line 499 of file CMakeCXXCompilerId.cpp.

Referenced by main().