🌱 Tim's Dev Wiki

Search IconIcon to open search

C

Last updated December 24, 2022.

# Spiral Rule

See the Clockwise/Spiral Rule. TODO.

# Preprocessor Directives

# Include Directive

#include tells the preprocessor to copy the contents of the included file and directly paste it into the current file, that’s literally all that happens.

# Header Guards

Header guards are used inside header files to ensure that the contents of the file are not copied and pasted more than once to any single file. They have the form:

1
2
3
4
5
6
#ifndef YOUR_HEADER_NAME_H
#define YOUR_HEADER_NAME_H

...

#endif