Xonotic
functional.qh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define APPLY(f, ...)   f(__VA_ARGS__)
 
#define CL(f, ...)
 
#define IDENTITY(it)   it
 
#define IF(cond, f, ...)   cond(f, __VA_ARGS__)
 
#define MAP(f, ...)   EVAL(OVERLOAD(MAP, f, __VA_ARGS__))
 
#define MAP_10(f, it, ...)   f(it) MAP_9(f, __VA_ARGS__)
 
#define MAP_11(f, it, ...)   f(it) MAP_10(f, __VA_ARGS__)
 
#define MAP_12(f, it, ...)   f(it) MAP_11(f, __VA_ARGS__)
 
#define MAP_13(f, it, ...)   f(it) MAP_12(f, __VA_ARGS__)
 
#define MAP_14(f, it, ...)   f(it) MAP_13(f, __VA_ARGS__)
 
#define MAP_15(f, it, ...)   f(it) MAP_14(f, __VA_ARGS__)
 
#define MAP_16(f, it, ...)   f(it) MAP_15(f, __VA_ARGS__)
 
#define MAP_17(f, it, ...)   f(it) MAP_16(f, __VA_ARGS__)
 
#define MAP_18(f, it, ...)   f(it) MAP_17(f, __VA_ARGS__)
 
#define MAP_19(f, it, ...)   f(it) MAP_18(f, __VA_ARGS__)
 
#define MAP_2(f, it)   f(it)
 
#define MAP_20(f, it, ...)   f(it) MAP_19(f, __VA_ARGS__)
 
#define MAP_3(f, it, ...)   f(it) MAP_2(f, __VA_ARGS__)
 
#define MAP_4(f, it, ...)   f(it) MAP_3(f, __VA_ARGS__)
 
#define MAP_5(f, it, ...)   f(it) MAP_4(f, __VA_ARGS__)
 
#define MAP_6(f, it, ...)   f(it) MAP_5(f, __VA_ARGS__)
 
#define MAP_7(f, it, ...)   f(it) MAP_6(f, __VA_ARGS__)
 
#define MAP_8(f, it, ...)   f(it) MAP_7(f, __VA_ARGS__)
 
#define MAP_9(f, it, ...)   f(it) MAP_8(f, __VA_ARGS__)
 
#define SV(f, ...)
 
#define UNWORDS(...)   MAP(IDENTITY, __VA_ARGS__)
 

Macro Definition Documentation

◆ APPLY

#define APPLY (   f,
  ... 
)    f(__VA_ARGS__)

Definition at line 28 of file functional.qh.

◆ CL

#define CL (   f,
  ... 
)

Definition at line 39 of file functional.qh.

◆ IDENTITY

#define IDENTITY (   it)    it

Definition at line 24 of file functional.qh.

◆ IF

#define IF (   cond,
  f,
  ... 
)    cond(f, __VA_ARGS__)

Definition at line 42 of file functional.qh.

◆ MAP

#define MAP (   f,
  ... 
)    EVAL(OVERLOAD(MAP, f, __VA_ARGS__))

Definition at line 3 of file functional.qh.

◆ MAP_10

#define MAP_10 (   f,
  it,
  ... 
)    f(it) MAP_9(f, __VA_ARGS__)

Definition at line 12 of file functional.qh.

◆ MAP_11

#define MAP_11 (   f,
  it,
  ... 
)    f(it) MAP_10(f, __VA_ARGS__)

Definition at line 13 of file functional.qh.

◆ MAP_12

#define MAP_12 (   f,
  it,
  ... 
)    f(it) MAP_11(f, __VA_ARGS__)

Definition at line 14 of file functional.qh.

◆ MAP_13

#define MAP_13 (   f,
  it,
  ... 
)    f(it) MAP_12(f, __VA_ARGS__)

Definition at line 15 of file functional.qh.

◆ MAP_14

#define MAP_14 (   f,
  it,
  ... 
)    f(it) MAP_13(f, __VA_ARGS__)

Definition at line 16 of file functional.qh.

◆ MAP_15

#define MAP_15 (   f,
  it,
  ... 
)    f(it) MAP_14(f, __VA_ARGS__)

Definition at line 17 of file functional.qh.

◆ MAP_16

#define MAP_16 (   f,
  it,
  ... 
)    f(it) MAP_15(f, __VA_ARGS__)

Definition at line 18 of file functional.qh.

◆ MAP_17

#define MAP_17 (   f,
  it,
  ... 
)    f(it) MAP_16(f, __VA_ARGS__)

Definition at line 19 of file functional.qh.

◆ MAP_18

#define MAP_18 (   f,
  it,
  ... 
)    f(it) MAP_17(f, __VA_ARGS__)

Definition at line 20 of file functional.qh.

◆ MAP_19

#define MAP_19 (   f,
  it,
  ... 
)    f(it) MAP_18(f, __VA_ARGS__)

Definition at line 21 of file functional.qh.

◆ MAP_2

#define MAP_2 (   f,
  it 
)    f(it)

Definition at line 4 of file functional.qh.

◆ MAP_20

#define MAP_20 (   f,
  it,
  ... 
)    f(it) MAP_19(f, __VA_ARGS__)

Definition at line 22 of file functional.qh.

◆ MAP_3

#define MAP_3 (   f,
  it,
  ... 
)    f(it) MAP_2(f, __VA_ARGS__)

Definition at line 5 of file functional.qh.

◆ MAP_4

#define MAP_4 (   f,
  it,
  ... 
)    f(it) MAP_3(f, __VA_ARGS__)

Definition at line 6 of file functional.qh.

◆ MAP_5

#define MAP_5 (   f,
  it,
  ... 
)    f(it) MAP_4(f, __VA_ARGS__)

Definition at line 7 of file functional.qh.

◆ MAP_6

#define MAP_6 (   f,
  it,
  ... 
)    f(it) MAP_5(f, __VA_ARGS__)

Definition at line 8 of file functional.qh.

◆ MAP_7

#define MAP_7 (   f,
  it,
  ... 
)    f(it) MAP_6(f, __VA_ARGS__)

Definition at line 9 of file functional.qh.

◆ MAP_8

#define MAP_8 (   f,
  it,
  ... 
)    f(it) MAP_7(f, __VA_ARGS__)

Definition at line 10 of file functional.qh.

◆ MAP_9

#define MAP_9 (   f,
  it,
  ... 
)    f(it) MAP_8(f, __VA_ARGS__)

Definition at line 11 of file functional.qh.

◆ SV

#define SV (   f,
  ... 
)

Definition at line 33 of file functional.qh.

◆ UNWORDS

#define UNWORDS (   ...)    MAP(IDENTITY, __VA_ARGS__)

Definition at line 26 of file functional.qh.