Skip to content

Commit

Permalink
add: documentation for include keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
v420v committed Sep 14, 2024
1 parent 4729fc1 commit 505f253
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ func main() i32 {
}
```

#### include
The `include` keyword first looks for the specified file, if it is not there, it searches the [lib](/lib/) folder to see if the file is contained there.
```go
#include "std/header.ibu"
```

#### Variables
```go
#include "std/header.ibu"
Expand Down Expand Up @@ -283,7 +289,4 @@ $ make self

```

## Reference
https://github.com/rui314/chibicc

https://tinkeros.github.io/WbGit/Doc/HolyC.html

0 comments on commit 505f253

Please sign in to comment.