Experimental external library support

This commit is contained in:
2025-08-25 17:35:16 +10:00
parent 38b17e7db5
commit e56e6de911
2 changed files with 216 additions and 3 deletions

View File

@@ -282,10 +282,12 @@ Note: Ground will check the directory where the program is being run from when t
Usage: `use $stringvalue`
#### extern (WORK IN PROGRESS)
#### extern (Experimental, please report bugs!)
Attempts to import a shared object library written for Ground. All functions in the external library will be usable with `call`.
Note: Ground will check the directory where the program is being run from when trying to find external programs. If that fails, it will check the directory set in the $GROUND_LIBS environment variable set by your system. The '.so', '.dll', etc extension is appended automatically.
Note: Ground will check the directory set in the $GROUND_LIBS environment variable set by your system. The '.so' (Linux), '.dylib' (macOS), or '.dll' (Windows) extension is appended automatically.
Documentation on how to do external libraries coming soon.
Usage: `extern $stringvalue`