Add NDEBUG markers around debug only function.