diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-06-04 10:04:26 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-06-04 10:13:02 +0200 |
commit | 42de7ab196a0cc82c1a40adffcea7b481a09e11c (patch) | |
tree | 539d03364364301620f6137d3cb0f335d8858e9f /tests/CMakeLists.txt | |
parent | 05c80a78a3cc1371bd04575de01128b0a4bd16b0 (diff) |
lib: implement `sourcepath()` function
The sourcepath() function allows querying the filesystem path of the source
file currently being executed by ucode.
The optional depth argument can be used to walk up the include stack to
determine the path of the file that included the current file, the path of
the parent file of the parent file and so on.
By specifying a truish value as second argument, only the directory portion
of the source file path is returned. This is useful to e.g. discover
ressources relative to the current source file directory.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions