Skip to content

Commit 76d72a8

Browse files
authored
docs: add yrx_compiler_add_include_dir in C API. (#447)
Add yrx_compiler_add_include_dir from 45a03c6 into the C API documentation.
1 parent 4016955 commit 76d72a8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

site/content/docs/api/c.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,24 @@ This origin is shown in error reports.
230230

231231
------
232232

233+
#### yrx_compiler_add_include_dir
234+
235+
```c
236+
enum YRX_RESULT yrx_compiler_add_include_dir(
237+
struct YRX_COMPILER *compiler,
238+
const char *dir);
239+
```
240+
241+
Adds a directory to the list of directories where the compiler should look for included files.
242+
243+
When an `include` is found, the compiler looks for the included file in the directories added
244+
with this function, in the order they were added.
245+
246+
If this function is not called, the compiler will only look for included files in the current
247+
directory.
248+
249+
------
250+
233251
#### yrx_compiler_ignore_module
234252
235253
```c

site/hugo_stats.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@
673673
"yrx_buffer_destroy",
674674
"yrx_compile",
675675
"yrx_compiler",
676+
"yrx_compiler_add_include_dir",
676677
"yrx_compiler_add_source",
677678
"yrx_compiler_add_source_with_origin",
678679
"yrx_compiler_ban_module",

0 commit comments

Comments
 (0)