diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-01-18 11:42:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 11:42:47 +0100 |
commit | 4015c2c1769989c20ea7234296eea02a16d1703d (patch) | |
tree | 4c57d279a8b54df10e6b194b586d3f6423d8e7cd /lib.c | |
parent | 0e5b273c3d25d1dce3b469f3a6865f430554e730 (diff) | |
parent | 3578afee0ab77650cf6adf3987a6f653f9311e9b (diff) |
Merge pull request #32 from jow-/precompile
Introduce ucode precompilation support
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2093,7 +2093,7 @@ uc_include(uc_vm_t *vm, size_t nargs) if (!closure) return NULL; - p = include_path(closure->function->source->filename, ucv_string_get(path)); + p = include_path(closure->function->program->source->filename, ucv_string_get(path)); if (!p) { uc_vm_raise_exception(vm, EXCEPTION_RUNTIME, @@ -2505,7 +2505,7 @@ uc_sourcepath(uc_vm_t *vm, size_t nargs) continue; } - path = realpath(frame->closure->function->source->filename, NULL); + path = realpath(frame->closure->function->program->source->filename, NULL); break; } |