mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-10 21:19: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:
parent
a922420066
commit
6900553f57
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ std::vector<std::string> split(const std::string &s, char delim);
|
|||
|
||||
bool is_positive_num(const std::string& str);
|
||||
|
||||
#define INBOUNDS(index, vector) ((int) index >= 0 && (int) index < (int) vector.size())
|
||||
|
||||
|
||||
//helperClass
|
||||
class UtilityClass
|
||||
|
|
Loading…
Reference in a new issue