Tilemap stuff
This commit is contained in:
@@ -227,6 +227,27 @@ errorret_t spriteBatchFlush(void);
|
||||
|
||||
---
|
||||
|
||||
## Unused parameters
|
||||
|
||||
Do **not** use `(void)param;` casts to suppress unused-parameter warnings. They are
|
||||
redundant noise. If a callback signature is fixed by a function-pointer type and the
|
||||
parameter is genuinely unused, just leave it — do not suppress:
|
||||
|
||||
```c
|
||||
// correct — parameter unused, no cast
|
||||
errorret_t sceneTestUpdate(scenedata_t *data) {
|
||||
errorOk();
|
||||
}
|
||||
|
||||
// wrong
|
||||
errorret_t sceneTestUpdate(scenedata_t *data) {
|
||||
(void)data;
|
||||
errorOk();
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Global subsystem state
|
||||
|
||||
Each subsystem exposes a single global instance declared `extern` in the header and defined (once) in the `.c` file:
|
||||
|
||||
Reference in New Issue
Block a user