1
0
Fork 0
forked from fun/fun

Some more example code and documentation on how to use includes.

This commit is contained in:
Johannes Findeisen 2025-09-27 17:49:22 +02:00
commit 045d1c2809
3 changed files with 4 additions and 2 deletions

View file

@ -11,6 +11,8 @@
// Demonstrates system library includes after installation to /usr/lib/fun
// includes can also be done with a leading # like in C, but some programmers maybe like more clean code without a
// leading #.
include <hello.fun>
include <utils/math.fun>

View file

@ -10,7 +10,7 @@
*/
// To test this you need to go to ./examples/ and test includes running ../build/fun include_local.fun
// Local includes are always relative from the $PWD.
// Local includes are always relative from the $PWD using "" and system includes are located at /usr/lib/fun using <>.
// Demonstrates local include:
// This resolves relative to the current working directory where 'fun' is executed.