Conversation
Notices
-
Embed this notice
wonder why nobody #includes .c files much just to make single units of code easier to look at
-
Embed this notice
@opal i've done that in the past with C, maybe because i'm used to languages that don't use header files
-
Embed this notice
@djsumdog you can use `#pragma once` instead of ifdef guards, it's well-supported on most compilers. anyway that's up to you, the only real reason to even guard header files is to avoid recursive dependencies by headers that indiscriminately include other stuff
-
Embed this notice
huh ... I never even thought about doing that. Buy would each .c file need the same `#ifndef/#define/#endif` that headers files normally need so they don't get included twice?