Commit: 229ba1a5da5ae4bd0ea9c361a4b159a87ce2b2e8 Parent: afbe09a30c48e46ce2c5f6aac3768234afd5320a Author: Randy Palamar Date: Sat, 12 Jul 2025 20:54:49 -0600 beamformer.c: move debug os includes to end of file Diffstat:
M | beamformer.c | | | 17 | +++++++++-------- |
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/beamformer.c b/beamformer.c @@ -21,14 +21,6 @@ #include "beamformer.h" #include "beamformer_work_queue.c" -#if _DEBUG - #if OS_LINUX - #include "os_linux.c" - #elif OS_WINDOWS - #include "os_win32.c" - #endif -#endif - global f32 dt_for_frame; global u32 cycle_t; @@ -858,3 +850,12 @@ DEBUG_EXPORT BEAMFORMER_FRAME_STEP_FN(beamformer_frame_step) if (WindowShouldClose()) ctx->should_exit = 1; } + +/* NOTE(rnp): functions defined in these shouldn't be visible to the whole program */ +#if _DEBUG + #if OS_LINUX + #include "os_linux.c" + #elif OS_WINDOWS + #include "os_win32.c" + #endif +#endif