summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-08-06 14:16:19 +0200
committerJo-Philipp Wich <jo@mein.io>2022-08-06 23:25:11 +0200
commitb6fd8a2f825ba3d38137bcfbf44ef7dd09161cd2 (patch)
tree1cd19fd65ad6892e900a42186c907593e6968943 /include
parenta486adc4e377611f1bcd957afe8c3ff6643e75c4 (diff)
lib: internally expose new uc_require_library() helper
Break out the core logic of the uc_require() stl function into a new uc_require_library() helper function and make it available for usage outside of lib.c. Also add a new boolean parameter to the helper function which allows restricting runtime require operations of modules to dynamic libraries only. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include')
-rw-r--r--include/ucode/lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ucode/lib.h b/include/ucode/lib.h
index 4c7a3b0..416fea5 100644
--- a/include/ucode/lib.h
+++ b/include/ucode/lib.h
@@ -34,6 +34,7 @@ uc_cfn_ptr_t uc_stdlib_function(const char *name);
__hidden bool uc_source_context_format(uc_stringbuf_t *buf, uc_source_t *src, size_t off, bool compact);
__hidden bool uc_error_context_format(uc_stringbuf_t *buf, uc_source_t *src, uc_value_t *stacktrace, size_t off);
+__hidden uc_value_t *uc_require_library(uc_vm_t *vm, uc_value_t *nameval, bool so_only);
/* vm helper */