1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Add INBOUNDS macro

I mean, I probably should've done this earlier, but using this saves on
typing and improves readability.
This commit is contained in:
Misa 2020-06-13 18:22:05 -07:00 committed by Ethan Lee
parent a922420066
commit 6900553f57

View file

@ -13,6 +13,8 @@ std::vector<std::string> split(const std::string &s, char delim);
bool is_positive_num(const std::string& str); bool is_positive_num(const std::string& str);
#define INBOUNDS(index, vector) ((int) index >= 0 && (int) index < (int) vector.size())
//helperClass //helperClass
class UtilityClass class UtilityClass