Fix release builds by removing functions from assertion macros.