Skip to content

Commit

Permalink
chore: remove foreach testing stuff as y_iterate would be outdated by…
Browse files Browse the repository at this point in the history
… now
  • Loading branch information
karimcambridge committed Apr 12, 2024
1 parent b467daf commit 889135f
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions foreach.inc
Original file line number Diff line number Diff line change
Expand Up @@ -186,24 +186,9 @@ Iterators:

// Foreach is testing us.
#if defined _FOREACH_INC_TEST
#define _FOREACH_CUR_VERSION _FOREACH_LOCAL_VERSION
#endinput
#endif
#if !defined _FOREACH_NO_TEST
#define _FOREACH_INC_TEST
#tryinclude <YSI\y_iterate>
#undef _FOREACH_INC_TEST
// <foreach> exists - test which is newer.
#if defined _inc_y_iterate
#if _FOREACH_CUR_VERSION > _FOREACH_LOCAL_VERSION
// Foreach is newer.
#undef _inc_y_iterate
#define _FOREACH_NO_TEST
#include <YSI\y_iterate>
#endinput
#endif
#endif
#endif
#define _FOREACH_INC_TEST

#if !defined _samp_included
#error "Please include a_samp or a_npc before foreach"
Expand Down

0 comments on commit 889135f

Please sign in to comment.