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

Useful macro definitions for general operations. More...

Go to the source code of this file.

Macros

#define PH_CONCAT_2(a, b)   a##b
 
#define PH_CONCAT_3(a, b, c)   a##b##c
 
#define PH_CONCAT_4(a, b, c, d)   a##b##c##d
 
#define PH_CONCAT_5(a, b, c, d, e)   a##b##c##d##e
 
#define PH_CONCAT_6(a, b, c, d, e, f)   a##b##c##d##e##f
 
#define PH_CONCAT_7(a, b, c, d, e, f, g)   a##b##c##d##e##f##g
 
#define PH_CONCAT_8(a, b, c, d, e, f, g, h)   a##b##c##d##e##f##g##h
 
#define PH_NO_OP()   ((void)0)
 Places an expression that does nothing. Useful in situations where the macro expansion is intended to mimic a function scope expression while doing nothing.
 

Detailed Description

Useful macro definitions for general operations.

Macro Definition Documentation

◆ PH_CONCAT_2

#define PH_CONCAT_2 ( a,
b )   a##b

◆ PH_CONCAT_3

#define PH_CONCAT_3 ( a,
b,
c )   a##b##c

◆ PH_CONCAT_4

#define PH_CONCAT_4 ( a,
b,
c,
d )   a##b##c##d

◆ PH_CONCAT_5

#define PH_CONCAT_5 ( a,
b,
c,
d,
e )   a##b##c##d##e

◆ PH_CONCAT_6

#define PH_CONCAT_6 ( a,
b,
c,
d,
e,
f )   a##b##c##d##e##f

◆ PH_CONCAT_7

#define PH_CONCAT_7 ( a,
b,
c,
d,
e,
f,
g )   a##b##c##d##e##f##g

◆ PH_CONCAT_8

#define PH_CONCAT_8 ( a,
b,
c,
d,
e,
f,
g,
h )   a##b##c##d##e##f##g##h

◆ PH_NO_OP

#define PH_NO_OP ( )    ((void)0)

Places an expression that does nothing. Useful in situations where the macro expansion is intended to mimic a function scope expression while doing nothing.