numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
compiler_builtins.h File Reference

Definition of macros for built-in functions of compilers. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NUM_COLLECT_BUILTIN_COLUMN()
 Get column number.
 
#define NUM_COLLECT_BUILTIN_FILE()
 Get file path.
 
#define NUM_COLLECT_BUILTIN_FUNCTION()
 Get function name.
 
#define NUM_COLLECT_BUILTIN_LINE()
 Get line number.
 
#define NUM_COLLECT_HAS_BUILTIN(NAME)
 Check existence of a builtins.
 
#define NUM_COLLECT_HAS_BUILTIN_COLUMN   1
 Whether NUM_COLLECT_BUILTIN_COLUMN returns correct column number.
 
#define NUM_COLLECT_HAS_BUILTIN_FILE   1
 Whether NUM_COLLECT_BUILTIN_FILE returns correct file paths.
 
#define NUM_COLLECT_HAS_BUILTIN_FUNCTION   1
 Whether NUM_COLLECT_BUILTIN_FUNCTION returns correct function name.
 
#define NUM_COLLECT_HAS_BUILTIN_LINE   1
 Whether NUM_COLLECT_HAS_BUILTIN_LINE returns correct line number.
 
#define NUM_COLLECT_HAS_MSVC_SOURCE_LOCATION   1
 Whether this environment is MSVC and has source location support.
 

Detailed Description

Definition of macros for built-in functions of compilers.

Definition in file compiler_builtins.h.

Macro Definition Documentation

◆ NUM_COLLECT_BUILTIN_COLUMN

#define NUM_COLLECT_BUILTIN_COLUMN ( )
Value:
__builtin_COLUMN()

Get column number.

Returns
column number.

Definition at line 179 of file compiler_builtins.h.

◆ NUM_COLLECT_BUILTIN_FILE

#define NUM_COLLECT_BUILTIN_FILE ( )
Value:
__builtin_FILE()

Get file path.

Returns
File path.

Definition at line 92 of file compiler_builtins.h.

◆ NUM_COLLECT_BUILTIN_FUNCTION

#define NUM_COLLECT_BUILTIN_FUNCTION ( )
Value:
__builtin_FUNCTION()

Get function name.

Returns
Function name.

Definition at line 121 of file compiler_builtins.h.

◆ NUM_COLLECT_BUILTIN_LINE

#define NUM_COLLECT_BUILTIN_LINE ( )
Value:
__builtin_LINE()

Get line number.

Returns
Line number.

Definition at line 150 of file compiler_builtins.h.

◆ NUM_COLLECT_HAS_BUILTIN

#define NUM_COLLECT_HAS_BUILTIN ( NAME)
Value:
__has_builtin(NAME)

Check existence of a builtins.

Note
This macro simply returns zero for platforms without __has_builtin.
Parameters
[in]NAMEName of builtin.

Definition at line 68 of file compiler_builtins.h.

◆ NUM_COLLECT_HAS_BUILTIN_COLUMN

#define NUM_COLLECT_HAS_BUILTIN_COLUMN   1

Whether NUM_COLLECT_BUILTIN_COLUMN returns correct column number.

Definition at line 172 of file compiler_builtins.h.

◆ NUM_COLLECT_HAS_BUILTIN_FILE

#define NUM_COLLECT_HAS_BUILTIN_FILE   1

Whether NUM_COLLECT_BUILTIN_FILE returns correct file paths.

Definition at line 85 of file compiler_builtins.h.

◆ NUM_COLLECT_HAS_BUILTIN_FUNCTION

#define NUM_COLLECT_HAS_BUILTIN_FUNCTION   1

Whether NUM_COLLECT_BUILTIN_FUNCTION returns correct function name.

Definition at line 114 of file compiler_builtins.h.

◆ NUM_COLLECT_HAS_BUILTIN_LINE

#define NUM_COLLECT_HAS_BUILTIN_LINE   1

Whether NUM_COLLECT_HAS_BUILTIN_LINE returns correct line number.

Definition at line 143 of file compiler_builtins.h.

◆ NUM_COLLECT_HAS_MSVC_SOURCE_LOCATION

#define NUM_COLLECT_HAS_MSVC_SOURCE_LOCATION   1

Whether this environment is MSVC and has source location support.

Definition at line 33 of file compiler_builtins.h.