Files
fulpstation/code/__DEFINES/_bitfields.dm
2025-03-23 15:36:10 -04:00

9 lines
388 B
Plaintext

#define DEFINE_BITFIELD(_variable, _flags) \
/* Important note: This exists to throw a compile time warning if more then one bitfield with the same name is defined */ \
/* This is required to avoid dupes in vv, and any consumers of our bitfield metainfo procs */ \
GLOBAL_REAL_VAR(_bitfield_##_variable); \
/datum/bitfield/##_variable { \
flags = ##_flags; \
variable = #_variable; \
}