Skip to content

Commit bf9bd0b

Browse files
committed
Updated readme
1 parent cbcd31a commit bf9bd0b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ The following directives are currently supported:
1010
* `#elif <condition>`
1111
* `#else`
1212
* `#endif`
13+
* `#include` (via `set_include_callback`)
14+
* Other arbitrary directives (via `set_command_callback`)
1315

1416
## Example usage:
1517
```cpp
16-
static char* read_file() { /* ... */ }
18+
static char* read_file(const char* path, size_t* out_size) { /* ... */ }
1719

1820
int main()
1921
{
2022
// Read contents of file "SomeFile.txt" into "buffer"
21-
char* buffer = read_file("SomeFile.txt");
23+
size_t size;
24+
char* buffer = read_file("SomeFile.txt", &size);
2225

2326
// Create a preprocessor
2427
ccpp::processor p;

0 commit comments

Comments
 (0)