limit block count at compile time

isolation_bkp/dynres
Dominik Madarász 2021-11-03 18:21:10 +01:00
parent 5cf92444e2
commit 7ecff06ae8
1 changed files with 2 additions and 0 deletions

View File

@ -23,3 +23,5 @@ static block blocks[] = {
BLOCK(ASSET_BELT_UP, 0, '@', .drag = 1.0f , .friction = 1.0f, .vely = -150.0f), BLOCK(ASSET_BELT_UP, 0, '@', .drag = 1.0f , .friction = 1.0f, .vely = -150.0f),
BLOCK(ASSET_BELT_DOWN, 0, '@', .drag = 1.0f , .friction = 1.0f, .vely = 150.0f), BLOCK(ASSET_BELT_DOWN, 0, '@', .drag = 1.0f , .friction = 1.0f, .vely = 150.0f),
}; };
ZPL_STATIC_ASSERT(sizeof(blocks)/sizeof(blocks[0]) < 256, "too many registered blocks! (max. 256)");