mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user