mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 07:54:14 +00:00
9 lines
388 B
Plaintext
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; \
|
|
}
|