diff options
author | Li Jin <dragon-fly@qq.com> | 2021-09-20 00:58:22 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-09-20 00:58:22 +0800 |
commit | 3a126602d903d49e13595268e1da57624f0b6fc1 (patch) | |
tree | 0a85f34cd2fa54467e1f06827a2f91ca0a6fa7fd | |
parent | ddb5afc6283e13479e866db41350b188aab1a813 (diff) | |
download | yuescript-3a126602d903d49e13595268e1da57624f0b6fc1.tar.gz yuescript-3a126602d903d49e13595268e1da57624f0b6fc1.tar.bz2 yuescript-3a126602d903d49e13595268e1da57624f0b6fc1.zip |
fix.
-rw-r--r-- | spec/inputs/macro.yue | 2 | ||||
-rw-r--r-- | spec/inputs/teal-lang.yue | 2 | ||||
-rw-r--r-- | src/yuescript/yuescript.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/spec/inputs/macro.yue b/spec/inputs/macro.yue index 6a255fe..2dd15ac 100644 --- a/spec/inputs/macro.yue +++ b/spec/inputs/macro.yue | |||
@@ -1,5 +1,5 @@ | |||
1 | $ -> | 1 | $ -> |
2 | package.yuepath = "?.yue;./spec/inputs/?.yue" | 2 | package.path = "?.lua;./spec/inputs/?.lua" |
3 | 3 | ||
4 | import "macro-export" as { | 4 | import "macro-export" as { |
5 | $, -- import all macros | 5 | $, -- import all macros |
diff --git a/spec/inputs/teal-lang.yue b/spec/inputs/teal-lang.yue index 1993203..68b2dd1 100644 --- a/spec/inputs/teal-lang.yue +++ b/spec/inputs/teal-lang.yue | |||
@@ -1,5 +1,5 @@ | |||
1 | $ -> | 1 | $ -> |
2 | package.yuepath = "?.yue;./spec/inputs/?.yue" | 2 | package.path = "?.lua;./spec/inputs/?.lua" |
3 | 3 | ||
4 | import "macro-teal" as {$} | 4 | import "macro-teal" as {$} |
5 | 5 | ||
diff --git a/src/yuescript/yuescript.h b/src/yuescript/yuescript.h index 30006ba..4428fbe 100644 --- a/src/yuescript/yuescript.h +++ b/src/yuescript/yuescript.h | |||
@@ -205,6 +205,7 @@ local function p(...) | |||
205 | end | 205 | end |
206 | print(concat(args)) | 206 | print(concat(args)) |
207 | end | 207 | end |
208 | yue.find_modulepath = find_modulepath | ||
208 | yue.insert_loader = insert_loader | 209 | yue.insert_loader = insert_loader |
209 | yue.dofile = yue_dofile | 210 | yue.dofile = yue_dofile |
210 | yue.loadfile = yue_loadfile | 211 | yue.loadfile = yue_loadfile |