From 3a126602d903d49e13595268e1da57624f0b6fc1 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 20 Sep 2021 00:58:22 +0800 Subject: fix. --- spec/inputs/macro.yue | 2 +- spec/inputs/teal-lang.yue | 2 +- 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 @@ $ -> - package.yuepath = "?.yue;./spec/inputs/?.yue" + package.path = "?.lua;./spec/inputs/?.lua" import "macro-export" as { $, -- 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 @@ $ -> - package.yuepath = "?.yue;./spec/inputs/?.yue" + package.path = "?.lua;./spec/inputs/?.lua" import "macro-teal" as {$} 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(...) end print(concat(args)) end +yue.find_modulepath = find_modulepath yue.insert_loader = insert_loader yue.dofile = yue_dofile yue.loadfile = yue_loadfile -- cgit v1.2.3-55-g6feb