Core/Misc: Use ASSERT (custom, better macro) instead of the C macro assert()