ISSOtm / rgbds-structs

A macro pack adding struct-like functionality to RGBDS
MIT License
21 stars 3 forks source link

`IF !DEF(NB_FIELDS)` is always true since `NB_FIELDS` was defined just above it #4

Closed Rangi42 closed 3 years ago

Rangi42 commented 3 years ago

https://github.com/ISSOtm/rgbds-structs/blob/c6283099ad6080a193d34039cc0f01c62495ba22/structs.asm#L202 should be IF !DEF({NB_FIELDS}) in 0.5.0. (In 0.4.2 it would require a temporary EQUS for "!DEF({NB_FIELDS})".)