g2o
Macros | Functions | Variables
CMakeCCompilerId.c 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)
 
#define C_DIALECT
 

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 449 of file CMakeCCompilerId.c.

#define C_DIALECT

Definition at line 524 of file CMakeCCompilerId.c.

#define COMPILER_ID   ""

Definition at line 282 of file CMakeCCompilerId.c.

#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 453 of file CMakeCCompilerId.c.

#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 464 of file CMakeCCompilerId.c.

#define PLATFORM_ID

Definition at line 399 of file CMakeCCompilerId.c.

#define STRINGIFY (   X)    STRINGIFY_HELPER(X)

Definition at line 303 of file CMakeCCompilerId.c.

#define STRINGIFY_HELPER (   X)    #X

Definition at line 302 of file CMakeCCompilerId.c.

Function Documentation

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

Definition at line 544 of file CMakeCCompilerId.c.

References info_arch, info_compiler, info_language_dialect_default, and info_platform.

546 {
547  int require = 0;
548  require += info_compiler[argc];
549  require += info_platform[argc];
550  require += info_arch[argc];
551 #ifdef COMPILER_VERSION_MAJOR
552  require += info_version[argc];
553 #endif
554 #ifdef SIMULATE_ID
555  require += info_simulate[argc];
556 #endif
557 #ifdef SIMULATE_VERSION_MAJOR
558  require += info_simulate_version[argc];
559 #endif
560 #if defined(__CRAYXE) || defined(__CRAYXC)
561  require += info_cray[argc];
562 #endif
563  require += info_language_dialect_default[argc];
564  (void)argv;
565  return require;
566 }
char const * info_arch
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 515 of file CMakeCCompilerId.c.

Referenced by main().

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

Definition at line 289 of file CMakeCCompilerId.c.

Referenced by main().

const char* info_language_dialect_default
Initial value:
=
"INFO" ":" "dialect_default[" C_DIALECT "]"
#define C_DIALECT

Definition at line 533 of file CMakeCCompilerId.c.

Referenced by main().

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

Definition at line 514 of file CMakeCCompilerId.c.

Referenced by main().