| 20 | } |
| 21 | |
| 22 | static void check_slice(Vec2<int> position, VoxelSlice &s, bool expected) |
| 23 | { |
| 24 | if (s.getBit(position) != expected) |
| 25 | { |
| 26 | LogError("Unexpected voxel at %s - expected %d", position, expected ? 1 : 0); |
| 27 | exit(EXIT_FAILURE); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | static void test_voxel(Vec3<int> voxel_size) |
| 32 | { |