|
|
|
|
|
by flohofwoe
892 days ago
|
|
In STB-style headers the implementation is inside a separate ifdef/endif block which is only activated at a single include point in the whole project. At all other include points the compiler will only parse the public API declarations and skip the implementation block (which is so much faster than parsing and compiling the implementation that the difference to a header which only contains the API declaration doesn't matter much even in large projects). For instance here is the start of the implementation block in stb_image.h, above that is just "cheap" public API declarations: https://github.com/nothings/stb/blob/f4a71b13373436a2866c5d6... |
|