#ifndef __main__ #define __main__ /* Include order doesn't really matter to me, however I do like to keep them reasonably organized: 1. "Header" includes (i.e, keraforge/_header.h). 2. Macro/common headers (i.e, keraforge/log.h). 3. Internal library includes (i.e, keraforge/*.h). 4. External library includes (i.e, raylib.h, raymath.h, etc). 5. C standard library includes. */ #include #include /* Please follow good practice when defining macros: - #undef after usage. - Use do/while blocks for parameterized macros. - Wrap constant macros in parenthesis, unless its a string that can be safely concatenated. */ /* Additional keywords (excl. const) should be on their own line. */ static /* All public items should be prefixed with kf_. All static items should use _kf_. */ int _kf_parse(int argc, /* Attach pointers with the identifier, not the type. */ char *argv[]) /* Allman braces */ { /* Tabs for indentation, spaces for alignment. */ /* Space out your semicolons in for loops. */ for (int i = 0 ; i < argc ; i++) fprintf(stderr, "%s", argv[i]); if (true) { /* ... */ } else { /* ... */ } return 1; } int main(void) { (void)_kf_parse(0, NULL); return 0; } #endif