Photon Common Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
compiler.h File Reference

Compiler-related information and utilities. More...

Go to the source code of this file.

Macros

#define PH_COMPILER_IS_CLANG   0
 
#define PH_COMPILER_IS_GNU   0
 
#define PH_COMPILER_IS_MSVC   0
 

Detailed Description

Compiler-related information and utilities.

Definitions for Detecting Compilers

  • PH_COMPILER_IS_MSVC: 1 if the compiler is the Microsoft Visual C++ compiler (MSVC), 0 otherwise
  • PH_COMPILER_IS_GNU: 1 if the compiler is the GNU C++ compiler, 0 otherwise
  • PH_COMPILER_IS_CLANG: 1 if the compiler is Clang C++ compiler, 0 otherwise

Additional Attributes

Introduces additional attributes for use with the standard C++ attribute syntax.

  • [[PH_ALWAYS_INLINE]]: Always attempt to inline the target

Macro Definition Documentation

◆ PH_COMPILER_IS_CLANG

#define PH_COMPILER_IS_CLANG   0

◆ PH_COMPILER_IS_GNU

#define PH_COMPILER_IS_GNU   0

◆ PH_COMPILER_IS_MSVC

#define PH_COMPILER_IS_MSVC   0