1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Use SDL_arraysize() instead of writing out array length

Using the macro makes it less likely that there will be a mistake when
writing out the array length.
This commit is contained in:
Misa 2020-09-09 21:48:45 -07:00 committed by Ethan Lee
parent b34be3f1ac
commit 32b6de729d

View file

@ -4,7 +4,9 @@
#include <string>
#include <vector>
#define filllines(lines) commands.insert(commands.end(), lines, lines + sizeof(lines)/sizeof(lines[0]))
#include <SDL.h>
#define filllines(lines) commands.insert(commands.end(), lines, lines + SDL_arraysize(lines))
struct Script