We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbcd31a commit bf9bd0bCopy full SHA for bf9bd0b
Readme.md
@@ -10,15 +10,18 @@ The following directives are currently supported:
10
* `#elif <condition>`
11
* `#else`
12
* `#endif`
13
+* `#include` (via `set_include_callback`)
14
+* Other arbitrary directives (via `set_command_callback`)
15
16
## Example usage:
17
```cpp
-static char* read_file() { /* ... */ }
18
+static char* read_file(const char* path, size_t* out_size) { /* ... */ }
19
20
int main()
21
{
22
// Read contents of file "SomeFile.txt" into "buffer"
- char* buffer = read_file("SomeFile.txt");
23
+ size_t size;
24
+ char* buffer = read_file("SomeFile.txt", &size);
25
26
// Create a preprocessor
27
ccpp::processor p;
0 commit comments