2 ms·
Could you rely on optimisation to strip out the code i.e. would a call to the following function be optimised out by the optimiser? void log_debug( … ) { if
by lesserknowndan 3y ago
Could you rely on optimisation to strip out the code i.e. would a call to the following function be optimised out by the optimiser?
void log_debug( … )
{
if ( LOG_LEVEL >= 6 )
{
// logging stuff here.
}
}