perhaps move macro this to `debug.h`. it seems to be useful anyways