Added check macro to dump.c