Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
enumclass.qh File Reference
#include "oo.qh"
Include dependency graph for enumclass.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CASE(class, id)
#define ENUMCAST(T, it)
#define ENUMCLASS(id)
#define ENUMCLASS_END(id)
#define ORDINAL(it)

Variables

int enum_ordinal

Macro Definition Documentation

◆ CASE

#define CASE ( class,
id )
Value:
class class##_##id; STATIC_INIT(class##_##id) { entity e = class##_##id = NEW(class); e.enum_ordinal = class##_count++; }
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117
#define STATIC_INIT(func)
during worldspawn
Definition static.qh:32

Definition at line 23 of file enumclass.qh.

◆ ENUMCAST

#define ENUMCAST ( T,
it )
Value:
ftoe(etof(T##_Null__) + (it))
#define etof(e)
Definition misc.qh:25
#define ftoe(i)
Definition misc.qh:26

Definition at line 26 of file enumclass.qh.

Referenced by NET_HANDLE().

◆ ENUMCLASS

#define ENUMCLASS ( id)
Value:
CLASS(id, Object) int id##_count; const noref entity id##_Null = nil; CASE(id, Null__)
#define CASE(class, id)
Definition enumclass.qh:23
#define CLASS(...)
Definition oo.qh:145

Definition at line 22 of file enumclass.qh.

◆ ENUMCLASS_END

#define ENUMCLASS_END ( id)
Value:
#define ENDCLASS(cname)
Definition oo.qh:281

Definition at line 24 of file enumclass.qh.

◆ ORDINAL

#define ORDINAL ( it)

Variable Documentation

◆ enum_ordinal

int enum_ordinal

Definition at line 21 of file enumclass.qh.