X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fintrusivelist.qh;h=fc0e080eae32fa103333559653d439a403895cb2;hb=0b6694545ba935bbac13c20fc11842ba1850d972;hp=524c6bec7d4334793b088633f9e43718c9e36247;hpb=583ff2fd202086e9cccd53071a5b88371b8d9dd1;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/intrusivelist.qh b/qcsrc/lib/intrusivelist.qh index 524c6bec7..fc0e080ea 100644 --- a/qcsrc/lib/intrusivelist.qh +++ b/qcsrc/lib/intrusivelist.qh @@ -4,11 +4,11 @@ const int IL_MAX = 128; -[[eraseable]] +ERASEABLE void IL_INIT(entity this); -[[eraseable]] +ERASEABLE void IL_DTOR(entity this); -[[eraseable]] +ERASEABLE void IL_ENDFRAME(); /** @@ -40,7 +40,7 @@ ENDCLASS(IntrusiveList) #define IL_LAST(this) (this.il_tail) #define IL_PEEK(this) (this.il_tail) -[[eraseable]] +ERASEABLE bool IL_CONTAINS(IntrusiveList this, entity it) { assert(this, return false); @@ -50,7 +50,7 @@ bool IL_CONTAINS(IntrusiveList this, entity it) /** * Push to tail */ -[[eraseable]] +ERASEABLE entity IL_PUSH(IntrusiveList this, entity it) { assert(this, return NULL); @@ -69,7 +69,7 @@ entity IL_PUSH(IntrusiveList this, entity it) /** * Push to head */ -[[eraseable]] +ERASEABLE entity IL_UNSHIFT(IntrusiveList this, entity it) { assert(this, return NULL); @@ -88,7 +88,7 @@ entity IL_UNSHIFT(IntrusiveList this, entity it) /** * Pop from tail */ -[[eraseable]] +ERASEABLE entity IL_POP(IntrusiveList this) { assert(this, return NULL); @@ -106,7 +106,7 @@ entity IL_POP(IntrusiveList this) /** * Pop from head */ -[[eraseable]] +ERASEABLE entity IL_SHIFT(IntrusiveList this) { assert(this, return NULL); @@ -124,7 +124,7 @@ entity IL_SHIFT(IntrusiveList this) /** * Remove any element, anywhere in the list */ -[[eraseable]] +ERASEABLE void IL_REMOVE(IntrusiveList this, entity it) { assert(this, return); @@ -189,7 +189,7 @@ int il_links_ptr; #define IL_LISTS_PER_BIT IL_CEIL(IL_MAX / (3 * 24)) -[[eraseable]] +ERASEABLE void IL_INIT(IntrusiveList this) { .entity nextfld, prevfld; @@ -218,14 +218,14 @@ void IL_INIT(IntrusiveList this) LOG_WARNF("IntrusiveList overflow"); } -[[eraseable]] +ERASEABLE void IL_DTOR(IntrusiveList this) { IL_CLEAR(this); il_links[this.il_id] = NULL; } -[[eraseable]] +ERASEABLE void IL_ENDFRAME() { #if 0 @@ -245,7 +245,7 @@ void IL_ENDFRAME() #endif } -[[eraseable]] +ERASEABLE void ONREMOVE(entity this) { if (this.il_lists) {