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

Go to the source code of this file.

Macros

#define _CONCAT3(a, b, c)   _CONCAT3_(a, b, c)
 
#define _CONCAT3_(a, b, c)   a##b##c
 
#define _STRUCT_DECLARE(x, id, type, END)   noref type x##_##id;
 
#define _STRUCT_PARAM(x, id, type, isend)   _STRUCT_PARAM_##isend(x, id, type)
 
#define _STRUCT_PARAM_(x, id, type)   type x##_##id,
 
#define _STRUCT_PARAM_END(x, id, type)   type x##_##id
 
#define _STRUCT_PASS(x, id, type, END)   _STRUCT_PASS_##END(x, id, type)
 
#define _STRUCT_PASS_(x, id, type)   x##_##id,
 
#define _STRUCT_PASS_END(x, id, type)   x##_##id
 
#define _STRUCT_STORE(x, id, type, END)   _CONCAT3(_STRUCT_STORE_DST x, _, id) = _CONCAT3(_STRUCT_STORE_SRC x, _, id);
 
#define _STRUCT_STORE_DST(_, it)   it
 
#define _STRUCT_STORE_SRC(it, _)   it
 
#define STRUCT(id, ...)
 
#define STRUCT_DECLARE(id, s)   s(_STRUCT_DECLARE, id)
 
#define STRUCT_PARAM(id, s)   s(_STRUCT_PARAM, id)
 
#define STRUCT_PASS(id, s)   s(_STRUCT_PASS, id)
 
#define STRUCT_STORE(from, to, s)   s(_STRUCT_STORE, (from, to))
 

Macro Definition Documentation

◆ _CONCAT3

#define _CONCAT3 (   a,
  b,
 
)    _CONCAT3_(a, b, c)

Definition at line 20 of file struct.qh.

◆ _CONCAT3_

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

Definition at line 19 of file struct.qh.

◆ _STRUCT_DECLARE

#define _STRUCT_DECLARE (   x,
  id,
  type,
  END 
)    noref type x##_##id;

Definition at line 4 of file struct.qh.

◆ _STRUCT_PARAM

#define _STRUCT_PARAM (   x,
  id,
  type,
  isend 
)    _STRUCT_PARAM_##isend(x, id, type)

Definition at line 9 of file struct.qh.

◆ _STRUCT_PARAM_

#define _STRUCT_PARAM_ (   x,
  id,
  type 
)    type x##_##id,

Definition at line 7 of file struct.qh.

◆ _STRUCT_PARAM_END

#define _STRUCT_PARAM_END (   x,
  id,
  type 
)    type x##_##id

Definition at line 8 of file struct.qh.

◆ _STRUCT_PASS

#define _STRUCT_PASS (   x,
  id,
  type,
  END 
)    _STRUCT_PASS_##END(x, id, type)

Definition at line 14 of file struct.qh.

◆ _STRUCT_PASS_

#define _STRUCT_PASS_ (   x,
  id,
  type 
)    x##_##id,

Definition at line 12 of file struct.qh.

◆ _STRUCT_PASS_END

#define _STRUCT_PASS_END (   x,
  id,
  type 
)    x##_##id

Definition at line 13 of file struct.qh.

◆ _STRUCT_STORE

#define _STRUCT_STORE (   x,
  id,
  type,
  END 
)    _CONCAT3(_STRUCT_STORE_DST x, _, id) = _CONCAT3(_STRUCT_STORE_SRC x, _, id);

Definition at line 21 of file struct.qh.

◆ _STRUCT_STORE_DST

#define _STRUCT_STORE_DST (   _,
  it 
)    it

Definition at line 17 of file struct.qh.

◆ _STRUCT_STORE_SRC

#define _STRUCT_STORE_SRC (   it,
 
)    it

Definition at line 18 of file struct.qh.

◆ STRUCT

#define STRUCT (   id,
  ... 
)

Definition at line 24 of file struct.qh.

◆ STRUCT_DECLARE

#define STRUCT_DECLARE (   id,
 
)    s(_STRUCT_DECLARE, id)

Definition at line 5 of file struct.qh.

◆ STRUCT_PARAM

#define STRUCT_PARAM (   id,
 
)    s(_STRUCT_PARAM, id)

Definition at line 10 of file struct.qh.

◆ STRUCT_PASS

#define STRUCT_PASS (   id,
 
)    s(_STRUCT_PASS, id)

Definition at line 15 of file struct.qh.

◆ STRUCT_STORE

#define STRUCT_STORE (   from,
  to,
 
)    s(_STRUCT_STORE, (from, to))

Definition at line 22 of file struct.qh.