3 ms·
I am just curious why are there functions/code in a .h file?
by tmaly 5y ago
I am just curious why are there functions/code in a .h file?
- rytcio 5y agoThis is a single file library. To include it in a project, in the header you put: #include "Microsoft_craziness.h"` Then in a c/cpp file: #define MICROSOFT_CRAZINESS_IMPLEMENTATION #include "Microsoft_craziness.h" The define causes the actual functions to be put in, while without it only the declarations are included.