mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
Clarifies usage of relative-include in guide
This commit is contained in:
parent
a9af4becbf
commit
9bfaa052c2
@ -220,7 +220,7 @@ Sometimes, it's more convenient to bring a module's declarations into scope only
|
||||
### C Interop
|
||||
```clojure
|
||||
(system-include "math.h") ;; compiles to #include <math.h>
|
||||
(relative-include "math.h") ;; compiles to #include "/full/path/to/file/math.h"
|
||||
(relative-include "math.h") ;; compiles to #include "$carp_file_dir/math.h" where carp_file_dir is the absolute path to the folder containing the invoking .carp file
|
||||
|
||||
(register blah (Fn [Int Int] String)) ;; Will register the function 'blah' that takes two Int:s and returns a String
|
||||
(register pi Double) ;; Will register the global variable 'pi' of type Double
|
||||
|
Loading…
Reference in New Issue
Block a user