prof_log: cassert(config_prof) in public functions
This lets the compiler infer that the code is dead in builds where profiling is enabled, saving on space there.
This commit is contained in:
committed by
David Goldblatt
parent
526180b76d
commit
83cad746ae
@@ -141,7 +141,9 @@ TEST_END
|
||||
|
||||
int
|
||||
main(void) {
|
||||
prof_log_dummy_set(true);
|
||||
if (config_prof) {
|
||||
prof_log_dummy_set(true);
|
||||
}
|
||||
return test_no_reentrancy(
|
||||
test_prof_log_many_logs,
|
||||
test_prof_log_many_traces,
|
||||
|
Reference in New Issue
Block a user