mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Turn obj.collect and obj.customcollect into plain arrays
Since they're always fixed-size, there's no need for them to be vectors. Also added an INBOUNDS_ARR() macro to do bounds checks with plain arrays.
This commit is contained in:
@@ -16,6 +16,7 @@ bool is_positive_num(const std::string& str, bool hex);
|
||||
bool endsWith(const std::string& str, const std::string& suffix);
|
||||
|
||||
#define INBOUNDS(index, vector) ((int) index >= 0 && (int) index < (int) vector.size())
|
||||
#define INBOUNDS_ARR(index, array) ((int) index >= 0 && (int) index < (int) SDL_arraysize(array))
|
||||
|
||||
#define WHINE_ONCE(message) \
|
||||
static bool whine = true; \
|
||||
|
||||
Reference in New Issue
Block a user