mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
b34be3f1ac
commit
32b6de729d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue