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

Go to the source code of this file.

Macros

#define _FOREACH_ENTITY_FIND_ORDERED(T, fld, match, cond, body)
#define _FOREACH_ENTITY_FIND_UNORDERED(id, T, fld, match, cond, body)
#define FOREACH(list, cond, body)
#define FOREACH_ARRAY(arr, start, end, cond, body)
#define FOREACH_CHAR(s, cond, body)
#define FOREACH_ENTITY(cond, body)
#define FOREACH_ENTITY_CLASS(class, cond, body)
#define FOREACH_ENTITY_CLASS_ORDERED(class, cond, body)
#define FOREACH_ENTITY_CLASS_UNORDERED(class, cond, body)
#define FOREACH_ENTITY_ENT(fld, match, body)
#define FOREACH_ENTITY_ENT_ORDERED(fld, match, body)
#define FOREACH_ENTITY_ENT_UNORDERED(fld, match, body)
#define FOREACH_ENTITY_FLAGS(fld, match, body)
#define FOREACH_ENTITY_FLAGS_ORDERED(fld, match, body)
#define FOREACH_ENTITY_FLAGS_UNORDERED(fld, match, body)
#define FOREACH_ENTITY_FLOAT(fld, match, body)
#define FOREACH_ENTITY_FLOAT_ORDERED(fld, match, body)
#define FOREACH_ENTITY_FLOAT_UNORDERED(fld, match, body)
#define FOREACH_ENTITY_ORDERED(cond, body)
#define FOREACH_ENTITY_RADIUS(org, dist, cond, body)
#define FOREACH_ENTITY_RADIUS_ORDERED(org, dist, cond, body)
#define FOREACH_ENTITY_RADIUS_UNORDERED(org, dist, cond, body)
#define FOREACH_ENTITY_STRING(fld, match, body)
#define FOREACH_ENTITY_STRING_ORDERED(fld, match, body)
#define FOREACH_ENTITY_STRING_UNORDERED(fld, match, body)
#define FOREACH_ENTITY_UNORDERED(cond, body)
#define FOREACH_LIST(list, next, cond, body)
#define FOREACH_WORD(words, cond, body)
#define ITER_CONST   const
#define MUTEX_LOCK(this)
#define MUTEX_UNLOCK(this)
#define ORDERED(F)
#define STRING_ITERATOR(this, s, i)
#define STRING_ITERATOR_GET(this)
#define STRING_ITERATOR_LOAD(this, n)
#define STRING_ITERATOR_NEXT(this)
#define STRING_ITERATOR_PEEK(this)
#define STRING_ITERATOR_SAVE(this)
#define STRING_ITERATOR_SET(this, s, i)
#define STRING_ITERATOR_UNGET(this)

Functions

 entity (.entity fld, entity match,.entity tofield) _findchainentity_tofield
 entity (.float fld, float match,.entity tofield) _findchainfloat_tofield
 entity (.string fld, string match,.entity tofield) _findchainstring_tofield
 entity (entity start,.entity fld, entity match) _findentity
 entity (entity start,.float fld, float match) _findfloat
 entity (entity start,.string fld, string match) _findstring
 entity (vector org, float rad,.entity tofield) _findchainradius_tofield

Variables

noref string _FOREACH_ENTITY_FIND_entity_allmutex
noref string _FOREACH_ENTITY_FIND_entity_mutex
entity _FOREACH_ENTITY_FIND_entity_next
entity _FOREACH_ENTITY_FIND_entity_nextall
noref string _FOREACH_ENTITY_FIND_flags_mutex
entity _FOREACH_ENTITY_FIND_flags_next
noref string _FOREACH_ENTITY_FIND_float_mutex
entity _FOREACH_ENTITY_FIND_float_next
noref string _FOREACH_ENTITY_FIND_radius_mutex
entity _FOREACH_ENTITY_FIND_radius_next
entity _FOREACH_ENTITY_FIND_radius_nexttmp
noref string _FOREACH_ENTITY_FIND_radius_tmpmutex
noref string _FOREACH_ENTITY_FIND_string_clazzmutex
noref string _FOREACH_ENTITY_FIND_string_mutex
entity _FOREACH_ENTITY_FIND_string_next
entity _FOREACH_ENTITY_FIND_string_nextclazz
entity _FOREACH_ENTITY_fld
 marker field, always NULL

Macro Definition Documentation

◆ _FOREACH_ENTITY_FIND_ORDERED

#define _FOREACH_ENTITY_FIND_ORDERED ( T,
fld,
match,
cond,
body )
Value:
MACRO_BEGIN \
int _i = 0; \
for (entity _it = NULL; (_it = _find##T(_it, fld, match)); ++_i) \
{ \
const noref int i = _i; \
ITER_CONST noref entity it = _it; \
if (cond) LAMBDA(body) \
} \
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define ITER_CONST
Definition iter.qh:4
#define MACRO_END
Definition macro.qh:7
#define LAMBDA(...)
Definition misc.qh:34
#define NULL
Definition post.qh:14

Definition at line 112 of file iter.qh.

112#define _FOREACH_ENTITY_FIND_ORDERED(T, fld, match, cond, body) \
113 MACRO_BEGIN \
114 int _i = 0; \
115 for (entity _it = NULL; (_it = _find##T(_it, fld, match)); ++_i) \
116 { \
117 const noref int i = _i; \
118 ITER_CONST noref entity it = _it; \
119 if (cond) LAMBDA(body) \
120 } \
121 MACRO_END

◆ _FOREACH_ENTITY_FIND_UNORDERED

#define _FOREACH_ENTITY_FIND_UNORDERED ( id,
T,
fld,
match,
cond,
body )
Value:
MACRO_BEGIN \
MUTEX_LOCK(_FOREACH_ENTITY_FIND_##T##_##id##mutex); \
entity _foundchain_first = _findchain##T##_tofield(fld, match, _FOREACH_ENTITY_FIND_##T##_next##id); \
FOREACH_LIST(_foundchain, _FOREACH_ENTITY_FIND_##T##_next##id, cond, body); \
MUTEX_UNLOCK(_FOREACH_ENTITY_FIND_##T##_##id##mutex); \

Definition at line 129 of file iter.qh.

129#define _FOREACH_ENTITY_FIND_UNORDERED(id, T, fld, match, cond, body) \
130 MACRO_BEGIN \
131 MUTEX_LOCK(_FOREACH_ENTITY_FIND_##T##_##id##mutex); \
132 entity _foundchain_first = _findchain##T##_tofield(fld, match, _FOREACH_ENTITY_FIND_##T##_next##id); \
133 FOREACH_LIST(_foundchain, _FOREACH_ENTITY_FIND_##T##_next##id, cond, body); \
134 MUTEX_UNLOCK(_FOREACH_ENTITY_FIND_##T##_##id##mutex); \
135 MACRO_END

◆ FOREACH

#define FOREACH ( list,
cond,
body )
Value:
FOREACH_LIST(list, enemy, cond, body)
#define FOREACH_LIST(list, next, cond, body)
Definition iter.qh:21
entity enemy
Definition sv_ctf.qh:153

Definition at line 19 of file iter.qh.

Referenced by _entcs_send(), _MapInfo_Generate(), _MapInfo_Map_ApplyGametypeEx(), _MapInfo_ParseArena(), ammo_pickupevalfunc(), buff_FirstFromFlags(), buff_NewType(), buff_RemoveAll(), ClearPlayerSounds(), client_hasweapon(), ClientCommand_macro_command(), ClientCommand_macro_help(), ClientCommand_macro_usage(), ClientCommand_macro_write_aliases(), ClientCommand_minigame(), Cmd_Scoreboard_SetFields(), CommonCommand_editmob(), CommonCommand_macro_command(), CommonCommand_macro_help(), CommonCommand_macro_usage(), CommonCommand_macro_write_aliases(), CSQC_Ent_Update(), CSQC_Parse_TempEntity(), Destroy_All_Notifications(), Dump_Items(), Dump_Notifications(), Dump_Turret_Settings(), Dump_Weapon_Settings(), Ent_RemovePlayerScore(), entcs_think(), GameCommand_macro_command(), GameCommand_macro_help(), GameCommand_macro_usage(), GameCommand_macro_write_aliases(), GenericCommand_macro_command(), GenericCommand_macro_help(), GenericCommand_macro_usage(), GenericCommand_macro_write_aliases(), GenericCommand_restartnotifs(), GetAmmoItem(), GetAmmoResource(), getmonsterlist(), GetPlayerScoreString(), GetPlayerSound(), GetResourceType(), GetVoiceMessage(), GiveItems(), GiveRandomWeapons(), havocbot_ai(), havocbot_chooseweapon(), havocbot_chooseweapon_checkreload(), HUD_ItemsTime(), HUD_Main(), HUD_MinigameMenu_ClickCreate(), HUD_ModIcons_Export(), HUD_Weapons(), ImpulseCommands(), invasion_PickMonster(), Inventory_clear(), Inventory_Write(), Item_GiveTo(), Item_Initialise(), Item_ItemsTime_ResetTimes(), Item_ItemsTime_ResetTimesForPlayer(), Item_ItemsTime_SetTimesForPlayer(), Item_RandomFromList(), KeyBinds_BuildList(), kh_Key_AssignTo(), LocalCommand_macro_command(), LocalCommand_macro_help(), LocalCommand_macro_usage(), LocalCommand_macro_write_aliases(), MapInfo_CurrentGametype(), MapInfo_Get_ByName(), MapInfo_Get_ByName_NoFallbacks(), MapInfo_LoadMapSettings(), MapInfo_SwitchGameType(), MapInfo_Type_FromString(), minigame_get_descriptor(), monsters_animoverride(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_choose_random(), Nade_FromProjectile(), Nade_TrailEffect(), Nades_FromString(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_Mutator_Remove(), NIX_ChooseNextWeapon(), Notification_GetCvars(), PlayerDamage(), PlayerScore_Clear(), PlayerScore_Compare(), PlayerScore_PlayerStats(), PlayerScore_SendEntity(), PlayerStats_GameReport_Accuracy(), PlayerStats_GameReport_Init(), PlayerStats_GameReport_Reset_All(), PRECACHE(), PRECACHE(), PRECACHE(), PutPlayerInServer(), RandomItems_GetRandomItemClassNameWithProperty(), RandomItems_GetRandomVanillaItemClassName(), ReadEntcs(), readlevelcvars(), readplayerstartcvars(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), ReplicateVars(), Score_ClearAll(), Score_NicePrint(), Score_NicePrint_Player(), Score_NicePrint_Team(), Scoreboard_AccuracyStats_Draw(), Scoreboard_AccuracyStats_WouldDraw(), Scoreboard_ComparePlayerScores(), Scoreboard_InitScores(), ScoreInfo_SendEntity(), ScoreRules_basics(), Send_Effect_(), ServerList_TypeSort_Click(), spawnfunc(), spawnmonster(), spritelookupicon(), spritelookuptext(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT(), STATIC_INIT_LATE(), STATIC_INIT_LATE(), StatusEffects_clearall(), StatusEffects_copy(), StatusEffects_removeall(), StatusEffects_tick(), StatusEffects_Write(), target_init_use(), View_PostProcessing(), W_GetCycleWeapon(), W_NumberWeaponOrder_MapFunc(), W_PROP_reload(), W_RandomWeapons(), W_ThrowNewWeapon(), Weapon_from_impulse(), Weapon_from_name(), weapon_pickupevalfunc(), weapons_all(), weapons_devall(), weapons_most(), and weapons_start().

◆ FOREACH_ARRAY

#define FOREACH_ARRAY ( arr,
start,
end,
cond,
body )
Value:
MACRO_BEGIN \
for (int _i = start; _i < end; ++_i) \
{ \
const noref int i = _i; \
ITER_CONST noref entity it = arr[i]; \
if (cond) { LAMBDA(body) } \
} \

Definition at line 9 of file iter.qh.

9#define FOREACH_ARRAY(arr, start, end, cond, body) \
10 MACRO_BEGIN \
11 for (int _i = start; _i < end; ++_i) \
12 { \
13 const noref int i = _i; \
14 ITER_CONST noref entity it = arr[i]; \
15 if (cond) { LAMBDA(body) } \
16 } \
17 MACRO_END

◆ FOREACH_CHAR

#define FOREACH_CHAR ( s,
cond,
body )
Value:
MACRO_BEGIN \
STRING_ITERATOR(iter, s, 0); \
int _it; \
while ((_it = STRING_ITERATOR_GET(iter)) > 0) \
{ \
const noref int it = _it; \
if (cond) { LAMBDA(body) } \
} \
#define STRING_ITERATOR_GET(this)
Definition iter.qh:55

Definition at line 62 of file iter.qh.

62#define FOREACH_CHAR(s, cond, body) \
63 MACRO_BEGIN \
64 STRING_ITERATOR(iter, s, 0); \
65 int _it; \
66 while ((_it = STRING_ITERATOR_GET(iter)) > 0) \
67 { \
68 const noref int it = _it; \
69 if (cond) { LAMBDA(body) } \
70 } \
71 MACRO_END

Referenced by markdown().

◆ FOREACH_ENTITY

#define FOREACH_ENTITY ( cond,
body )
Value:
ORDERED(FOREACH_ENTITY)(cond, body)
#define ORDERED(F)
Definition iter.qh:111
#define FOREACH_ENTITY(cond, body)
Definition iter.qh:137

Definition at line 137 of file iter.qh.

◆ FOREACH_ENTITY_CLASS

#define FOREACH_ENTITY_CLASS ( class,
cond,
body )
Value:
ORDERED(FOREACH_ENTITY_CLASS)(class, cond, body)
#define FOREACH_ENTITY_CLASS(class, cond, body)
Definition iter.qh:189

Definition at line 189 of file iter.qh.

Referenced by cvar_settemp_restore(), dropclient_schedule(), HUD_Crosshair_ApplyPlayerAlpha(), and waypoint_remove_fromeditor().

◆ FOREACH_ENTITY_CLASS_ORDERED

#define FOREACH_ENTITY_CLASS_ORDERED ( class,
cond,
body )
Value:
_FOREACH_ENTITY_FIND_ORDERED(string, classname, class, cond, body)
string classname
#define _FOREACH_ENTITY_FIND_ORDERED(T, fld, match, cond, body)
Definition iter.qh:112

Definition at line 190 of file iter.qh.

Referenced by GENERIC_COMMAND().

◆ FOREACH_ENTITY_CLASS_UNORDERED

#define FOREACH_ENTITY_CLASS_UNORDERED ( class,
cond,
body )
Value:
_FOREACH_ENTITY_FIND_UNORDERED(clazz, string, classname, class, cond, body)
#define _FOREACH_ENTITY_FIND_UNORDERED(id, T, fld, match, cond, body)
Definition iter.qh:129

Definition at line 192 of file iter.qh.

◆ FOREACH_ENTITY_ENT

#define FOREACH_ENTITY_ENT ( fld,
match,
body )
Value:
ORDERED(FOREACH_ENTITY_ENT)(fld, match, body)
#define FOREACH_ENTITY_ENT(fld, match, body)
Definition iter.qh:179

Definition at line 179 of file iter.qh.

Referenced by pathlib_deletepath(), pathlib_getbestopen(), pathlib_wpp_bestopen(), and vehicles_reset_colors().

◆ FOREACH_ENTITY_ENT_ORDERED

#define FOREACH_ENTITY_ENT_ORDERED ( fld,
match,
body )
Value:
_FOREACH_ENTITY_FIND_ORDERED(entity, fld, match, true, body)

Definition at line 180 of file iter.qh.

◆ FOREACH_ENTITY_ENT_UNORDERED

#define FOREACH_ENTITY_ENT_UNORDERED ( fld,
match,
body )
Value:
_FOREACH_ENTITY_FIND_UNORDERED(, entity, fld, match, true, body)

Definition at line 182 of file iter.qh.

◆ FOREACH_ENTITY_FLAGS

#define FOREACH_ENTITY_FLAGS ( fld,
match,
body )
Value:
ORDERED(FOREACH_ENTITY_FLAGS)(fld, match, body)
#define FOREACH_ENTITY_FLAGS(fld, match, body)
Definition iter.qh:153

Definition at line 153 of file iter.qh.

◆ FOREACH_ENTITY_FLAGS_ORDERED

#define FOREACH_ENTITY_FLAGS_ORDERED ( fld,
match,
body )
Value:
_FOREACH_ENTITY_FIND_ORDERED(flags, fld, match, true, body)
float flags

Definition at line 154 of file iter.qh.

◆ FOREACH_ENTITY_FLAGS_UNORDERED

#define FOREACH_ENTITY_FLAGS_UNORDERED ( fld,
match,
body )
Value:
_FOREACH_ENTITY_FIND_UNORDERED(, flags, fld, match, true, body)

Definition at line 156 of file iter.qh.

◆ FOREACH_ENTITY_FLOAT

#define FOREACH_ENTITY_FLOAT ( fld,
match,
body )
Value:
ORDERED(FOREACH_ENTITY_FLOAT)(fld, match, body)
#define FOREACH_ENTITY_FLOAT(fld, match, body)
Definition iter.qh:174

Definition at line 174 of file iter.qh.

Referenced by crosshair_trace_plusvisibletriggers__is_wz().

◆ FOREACH_ENTITY_FLOAT_ORDERED

#define FOREACH_ENTITY_FLOAT_ORDERED ( fld,
match,
body )
Value:
_FOREACH_ENTITY_FIND_ORDERED(float, fld, match, true, body)

Definition at line 175 of file iter.qh.

Referenced by reset_map().

◆ FOREACH_ENTITY_FLOAT_UNORDERED

#define FOREACH_ENTITY_FLOAT_UNORDERED ( fld,
match,
body )
Value:
_FOREACH_ENTITY_FIND_UNORDERED(, float, fld, match, true, body)

Definition at line 177 of file iter.qh.

◆ FOREACH_ENTITY_ORDERED

#define FOREACH_ENTITY_ORDERED ( cond,
body )
Value:
MACRO_BEGIN \
int _i = 0; \
for (entity _it = NULL; (_it = nextent(_it)); ++_i) \
{ \
const noref int i = _i; \
ITER_CONST noref entity it = _it; \
if (cond) LAMBDA(body) \
} \
entity nextent(entity e)

Definition at line 138 of file iter.qh.

138#define FOREACH_ENTITY_ORDERED(cond, body) \
139 MACRO_BEGIN \
140 int _i = 0; \
141 for (entity _it = NULL; (_it = nextent(_it)); ++_i) \
142 { \
143 const noref int i = _i; \
144 ITER_CONST noref entity it = _it; \
145 if (cond) LAMBDA(body) \
146 } \
147 MACRO_END

Referenced by GameCommand(), GENERIC_COMMAND(), reset_map(), and Shutdown().

◆ FOREACH_ENTITY_RADIUS

◆ FOREACH_ENTITY_RADIUS_ORDERED

#define FOREACH_ENTITY_RADIUS_ORDERED ( org,
dist,
cond,
body )
Value:
MACRO_BEGIN \
entity _rev_first = NULL; \
_FOREACH_ENTITY_FIND_UNORDERED(tmp, radius, org, dist, cond, (it._FOREACH_ENTITY_FIND_radius_nexttmp = _rev_first, _rev_first = it)); \
FOREACH_LIST(_rev, _FOREACH_ENTITY_FIND_radius_nexttmp, true, body); \
float radius
Definition impulse.qh:11
noref string _FOREACH_ENTITY_FIND_radius_tmpmutex
Definition iter.qh:163
entity _FOREACH_ENTITY_FIND_radius_nexttmp
Definition iter.qh:163

Definition at line 164 of file iter.qh.

164#define FOREACH_ENTITY_RADIUS_ORDERED(org, dist, cond, body) \
165MACRO_BEGIN \
166 entity _rev_first = NULL; \
167 _FOREACH_ENTITY_FIND_UNORDERED(tmp, radius, org, dist, cond, (it._FOREACH_ENTITY_FIND_radius_nexttmp = _rev_first, _rev_first = it)); \
168 MUTEX_LOCK(_FOREACH_ENTITY_FIND_radius_tmpmutex); \
169 FOREACH_LIST(_rev, _FOREACH_ENTITY_FIND_radius_nexttmp, true, body); \
170 MUTEX_UNLOCK(_FOREACH_ENTITY_FIND_radius_tmpmutex); \
171MACRO_END

Referenced by _Movetype_LinkEdict_TouchAreaGrid(), and sys_phys_simulate_simple().

◆ FOREACH_ENTITY_RADIUS_UNORDERED

#define FOREACH_ENTITY_RADIUS_UNORDERED ( org,
dist,
cond,
body )
Value:

Definition at line 162 of file iter.qh.

◆ FOREACH_ENTITY_STRING

#define FOREACH_ENTITY_STRING ( fld,
match,
body )
Value:
ORDERED(FOREACH_ENTITY_STRING)(fld, match, body)
#define FOREACH_ENTITY_STRING(fld, match, body)
Definition iter.qh:184

Definition at line 184 of file iter.qh.

Referenced by Simple_TeleportPlayer(), target_objective_decrease_activate(), target_spawn_use(), and target_teleporter_checktarget().

◆ FOREACH_ENTITY_STRING_ORDERED

#define FOREACH_ENTITY_STRING_ORDERED ( fld,
match,
body )
Value:
_FOREACH_ENTITY_FIND_ORDERED(string, fld, match, true, body)

Definition at line 185 of file iter.qh.

◆ FOREACH_ENTITY_STRING_UNORDERED

#define FOREACH_ENTITY_STRING_UNORDERED ( fld,
match,
body )
Value:
_FOREACH_ENTITY_FIND_UNORDERED(, string, fld, match, true, body)

Definition at line 187 of file iter.qh.

◆ FOREACH_ENTITY_UNORDERED

#define FOREACH_ENTITY_UNORDERED ( cond,
body )
Value:
entity _FOREACH_ENTITY_fld
marker field, always NULL
Definition iter.qh:149

Definition at line 151 of file iter.qh.

◆ FOREACH_LIST

#define FOREACH_LIST ( list,
next,
cond,
body )
Value:
MACRO_BEGIN \
int _i = 0; \
for (entity _it = list##_first, _next = NULL; _it; (_it = _next, ++_i)) \
{ \
const noref int i = _i; \
ITER_CONST noref entity it = _it; \
_next = _it.next; \
if (cond) { LAMBDA(body) } \
} \

Definition at line 21 of file iter.qh.

21#define FOREACH_LIST(list, next, cond, body) \
22 MACRO_BEGIN \
23 int _i = 0; \
24 for (entity _it = list##_first, _next = NULL; _it; (_it = _next, ++_i)) \
25 { \
26 const noref int i = _i; \
27 ITER_CONST noref entity it = _it; \
28 _next = _it.next; \
29 if (cond) { LAMBDA(body) } \
30 } \
31 MACRO_END

Referenced by WarpZone_FindRadius().

◆ FOREACH_WORD

#define FOREACH_WORD ( words,
cond,
body )
Value:
MACRO_BEGIN \
string _words = words; \
int _i = 0; \
for (string _it; (_it = car(_words)); (_words = cdr(_words), ++_i)) \
{ \
const noref int i = _i; \
const noref string it = _it; \
if (cond) { LAMBDA(body) } \
} \
ERASEABLE string car(string s)
returns first word
Definition string.qh:259
ERASEABLE string cdr(string s)
returns all but first word
Definition string.qh:268

Definition at line 33 of file iter.qh.

33#define FOREACH_WORD(words, cond, body) \
34 MACRO_BEGIN \
35 string _words = words; \
36 int _i = 0; \
37 for (string _it; (_it = car(_words)); (_words = cdr(_words), ++_i)) \
38 { \
39 const noref int i = _i; \
40 const noref string it = _it; \
41 if (cond) { LAMBDA(body) } \
42 } \
43 MACRO_END

Referenced by _MapInfo_ParseArena(), Animation::ATTRIB(), BanCommand_unmute(), BanCommand_unplayban(), BanCommand_unvoteban(), findinlist_abbrev(), FixIntermissionClient(), GenericCommand_addtolist(), GenericCommand_maplist(), GenericCommand_removefromlist(), getmaplist(), ignore_list_apply(), ignore_playerinlist(), ignore_remove_player(), invasion_SpawnChosenMonster(), Item_RandomFromList(), Maplist_Init(), maplist_shuffle(), precache_playermodels(), spawnfunc(), target_teleporter_checktarget(), TeleportPlayer(), and W_Apply_Weaponreplace().

◆ ITER_CONST

#define ITER_CONST   const

Definition at line 4 of file iter.qh.

◆ MUTEX_LOCK

#define MUTEX_LOCK ( this)
Value:
MACRO_BEGIN \
if (this) LOG_SEVEREF("Loop mutex held by %s", this); \
this = __FUNC__; \
#define LOG_SEVEREF(...)
Definition log.qh:58
entity this
Definition self.qh:72

Definition at line 122 of file iter.qh.

122#define MUTEX_LOCK(this) MACRO_BEGIN \
123 if (this) LOG_SEVEREF("Loop mutex held by %s", this); \
124 this = __FUNC__; \
125MACRO_END

◆ MUTEX_UNLOCK

#define MUTEX_UNLOCK ( this)
Value:
MACRO_BEGIN \
this = string_null; \
string string_null
Definition nil.qh:9

Definition at line 126 of file iter.qh.

126#define MUTEX_UNLOCK(this) MACRO_BEGIN \
127 this = string_null; \
128MACRO_END

◆ ORDERED

#define ORDERED ( F)
Value:
F##_UNORDERED

Definition at line 111 of file iter.qh.

◆ STRING_ITERATOR

#define STRING_ITERATOR ( this,
s,
i )
Value:
string this##_s = s; \
int this##_i = i

Definition at line 45 of file iter.qh.

45#define STRING_ITERATOR(this, s, i) \
46 string this##_s = s; \
47 int this##_i = i

Referenced by TEST().

◆ STRING_ITERATOR_GET

#define STRING_ITERATOR_GET ( this)

◆ STRING_ITERATOR_LOAD

#define STRING_ITERATOR_LOAD ( this,
n )
Value:
MACRO_BEGIN this##_i = n; MACRO_END
#define MACRO_BEGIN
Definition macro.qh:6

Definition at line 60 of file iter.qh.

◆ STRING_ITERATOR_NEXT

#define STRING_ITERATOR_NEXT ( this)
Value:

Definition at line 57 of file iter.qh.

Referenced by _json_parse_array(), and _json_parse_members().

◆ STRING_ITERATOR_PEEK

#define STRING_ITERATOR_PEEK ( this)
Value:
str2chr(this##_s, this##_i)

Definition at line 56 of file iter.qh.

Referenced by _json_parse_array(), and _json_parse_members().

◆ STRING_ITERATOR_SAVE

#define STRING_ITERATOR_SAVE ( this)
Value:
this##_i

Definition at line 59 of file iter.qh.

◆ STRING_ITERATOR_SET

#define STRING_ITERATOR_SET ( this,
s,
i )
Value:
MACRO_BEGIN \
this##_s = s; \
this##_i = i; \

Definition at line 49 of file iter.qh.

49#define STRING_ITERATOR_SET(this, s, i) \
50 MACRO_BEGIN \
51 this##_s = s; \
52 this##_i = i; \
53 MACRO_END

Referenced by json_parse(), and Net_ClientCommand().

◆ STRING_ITERATOR_UNGET

#define STRING_ITERATOR_UNGET ( this)
Value:

Definition at line 58 of file iter.qh.

Referenced by _json_parse_float(), _json_parse_int(), and _json_parse_string().

Function Documentation

◆ entity() [1/7]

entity ( .entity fld,
entity match,
.entity tofield )

References entity().

◆ entity() [2/7]

entity ( .float fld,
float match,
.entity tofield )

References entity().

◆ entity() [3/7]

entity ( .string fld,
string match,
.entity tofield )

References entity().

◆ entity() [4/7]

entity ( entity start,
.entity fld,
entity match )

References entity().

◆ entity() [5/7]

entity ( entity start,
.float fld,
float match )

References entity().

◆ entity() [6/7]

entity ( entity start,
.string fld,
string match )

References entity().

◆ entity() [7/7]

entity ( vector org,
float rad,
.entity tofield )

References entity(), org, and vector.

Variable Documentation

◆ _FOREACH_ENTITY_FIND_entity_allmutex

noref string _FOREACH_ENTITY_FIND_entity_allmutex

Definition at line 150 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_entity_mutex

noref string _FOREACH_ENTITY_FIND_entity_mutex

Definition at line 181 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_entity_next

entity _FOREACH_ENTITY_FIND_entity_next

Definition at line 181 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_entity_nextall

entity _FOREACH_ENTITY_FIND_entity_nextall

Definition at line 150 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_flags_mutex

noref string _FOREACH_ENTITY_FIND_flags_mutex

Definition at line 155 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_flags_next

entity _FOREACH_ENTITY_FIND_flags_next

Definition at line 155 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_float_mutex

noref string _FOREACH_ENTITY_FIND_float_mutex

Definition at line 176 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_float_next

entity _FOREACH_ENTITY_FIND_float_next

Definition at line 176 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_radius_mutex

noref string _FOREACH_ENTITY_FIND_radius_mutex

Definition at line 161 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_radius_next

entity _FOREACH_ENTITY_FIND_radius_next

Definition at line 161 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_radius_nexttmp

entity _FOREACH_ENTITY_FIND_radius_nexttmp

Definition at line 163 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_radius_tmpmutex

noref string _FOREACH_ENTITY_FIND_radius_tmpmutex

Definition at line 163 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_string_clazzmutex

noref string _FOREACH_ENTITY_FIND_string_clazzmutex

Definition at line 191 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_string_mutex

noref string _FOREACH_ENTITY_FIND_string_mutex

Definition at line 186 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_string_next

entity _FOREACH_ENTITY_FIND_string_next

Definition at line 186 of file iter.qh.

◆ _FOREACH_ENTITY_FIND_string_nextclazz

entity _FOREACH_ENTITY_FIND_string_nextclazz

Definition at line 191 of file iter.qh.

◆ _FOREACH_ENTITY_fld

entity _FOREACH_ENTITY_fld

marker field, always NULL

Definition at line 149 of file iter.qh.