Xonotic
|
#include "oo.qh"
Go to the source code of this file.
Macros | |
#define | CASE(class, id) class class##_##id; STATIC_INIT(class##_##id) { entity e = class##_##id = NEW(class); e.enum_ordinal = class##_count++; } |
#define | ENUMCAST(T, it) ftoe(etof(T##_Null__) + (it)) |
#define | ENUMCLASS(id) CLASS(id, Object) int id##_count; const noref entity id##_Null = nil; CASE(id, Null__) |
#define | ENUMCLASS_END(id) ENDCLASS(id) |
#define | ORDINAL(it) ((it).enum_ordinal) |
Variables | |
int | enum_ordinal |
#define CASE | ( | class, | |
id | |||
) | class class##_##id; STATIC_INIT(class##_##id) { entity e = class##_##id = NEW(class); e.enum_ordinal = class##_count++; } |
Definition at line 23 of file enumclass.qh.
Referenced by GENERIC_COMMAND(), Get_Notif_TypeName(), and STATIC_INIT().
Definition at line 26 of file enumclass.qh.
Referenced by Local_Notification_WOVA().
#define ENUMCLASS | ( | id | ) | CLASS(id, Object) int id##_count; const noref entity id##_Null = nil; CASE(id, Null__) |
Definition at line 22 of file enumclass.qh.
Referenced by GENERIC_COMMAND(), Get_Notif_TypeName(), and STATIC_INIT().
#define ENUMCLASS_END | ( | id | ) | ENDCLASS(id) |
Definition at line 24 of file enumclass.qh.
Referenced by GENERIC_COMMAND(), Get_Notif_TypeName(), and STATIC_INIT().
#define ORDINAL | ( | it | ) | ((it).enum_ordinal) |
Definition at line 25 of file enumclass.qh.
Referenced by Announcer_Gamestart(), Get_Notif_TypeName(), Local_Notification_sprintf(), and Local_Notification_WOVA().
int enum_ordinal |
Definition at line 21 of file enumclass.qh.