summaryrefslogtreecommitdiff
path: root/matrix-macros
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-02-29 17:04:28 -0500
committerFreya Murphy <freya@freyacat.org>2024-02-29 17:04:28 -0500
commit5d2747e26f51cc2344a6bd95f93457248fdfebd8 (patch)
tree8755b4068166c3854d26817683ce438a771ab319 /matrix-macros
parentmore mat, sys, and os stdlib functions, better matrix printing, other fixes (diff)
downloadmatrix-5d2747e26f51cc2344a6bd95f93457248fdfebd8.tar.gz
matrix-5d2747e26f51cc2344a6bd95f93457248fdfebd8.tar.bz2
matrix-5d2747e26f51cc2344a6bd95f93457248fdfebd8.zip
fin prob
Diffstat (limited to 'matrix-macros')
-rw-r--r--matrix-macros/Cargo.toml2
-rw-r--r--matrix-macros/src/lib.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/matrix-macros/Cargo.toml b/matrix-macros/Cargo.toml
index df84237..4aff09a 100644
--- a/matrix-macros/Cargo.toml
+++ b/matrix-macros/Cargo.toml
@@ -9,4 +9,4 @@ proc-macro = true
[dependencies]
syn = { version = "1", features = ["full"] }
quote = "1"
-matrix = { path = "../matrix" }
+matrix-lang = { path = "../matrix-lang" }
diff --git a/matrix-macros/src/lib.rs b/matrix-macros/src/lib.rs
index b12d30b..a660053 100644
--- a/matrix-macros/src/lib.rs
+++ b/matrix-macros/src/lib.rs
@@ -37,12 +37,12 @@ pub fn native_func(input: TokenStream, annotated_item: TokenStream) -> TokenStre
assert!(itemfn.sig.variadic.is_none(), "item must not be variadic");
let expanded = quote! {
- #visibility fn #name() -> ::std::rc::Rc< ::matrix::chunk::Function> {
- ::std::rc::Rc::new( ::matrix::chunk::Function {
+ #visibility fn #name() -> ::std::rc::Rc< ::matrix_lang::prelude::Function> {
+ ::std::rc::Rc::new( ::matrix_lang::prelude::Function {
name: ::std::rc::Rc::from( #name_str ),
arity: #arity,
variadic: #variadic,
- fun: ::matrix::chunk::InnerFunction::Native(
+ fun: ::matrix_lang::prelude::InnerFunction::Native(
::std::rc::Rc::new(
|#inputs| #output #block
)