aboutsummaryrefslogtreecommitdiffstats
path: root/tihdy_derive
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-01-30 17:08:25 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-01-30 17:08:38 +0100
commit85d9b613dd3d66e9fe23115fb9b5c1246a54d4f0 (patch)
tree116da6aa4c0280c66366eadce27d095b95ba6946 /tihdy_derive
parent03977fdf0d09156dbee222194d0800b4ba8dde8b (diff)
downloadsylt-85d9b613dd3d66e9fe23115fb9b5c1246a54d4f0.tar.gz
move things about
Diffstat (limited to 'tihdy_derive')
-rw-r--r--tihdy_derive/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tihdy_derive/src/lib.rs b/tihdy_derive/src/lib.rs
index 7950d20..c0806ab 100644
--- a/tihdy_derive/src/lib.rs
+++ b/tihdy_derive/src/lib.rs
@@ -65,20 +65,20 @@ pub fn extern_function(tokens: TokenStream) -> TokenStream {
let tokens = quote! {
pub fn #function (
- __values: &[tihdy::vm::Value],
+ __values: &[tihdy::Value],
__typecheck: bool
- ) -> ::std::result::Result<tihdy::vm::Value, tihdy::error::ErrorKind>
+ ) -> ::std::result::Result<tihdy::Value, tihdy::error::ErrorKind>
{
if __typecheck {
#[allow(unused_variables)]
match __values {
#(#typecheck_blocks),*
- _ => Err(tihdy::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| tihdy::vm::Type::from(v)).collect()))
+ _ => Err(tihdy::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| tihdy::Type::from(v)).collect()))
}
} else {
match __values {
#(#eval_blocks),*
- _ => Err(tihdy::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| tihdy::vm::Type::from(v)).collect()))
+ _ => Err(tihdy::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| tihdy::Type::from(v)).collect()))
}
}
}