3 ms·
One reason to prefer it in C is to be able to easily add locally scoped functionality like profiling markers and temp allocators. profile_begin("func"); a
by champijone 2y ago
One reason to prefer it in C is to be able to easily add locally scoped functionality like profiling markers and temp allocators.
profile_begin("func");
a = temp_arena_begin();
// ... code
temp_arena_end();
profile_end();