aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-01-30 12:10:49 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-01-30 12:10:49 +0100
commite93e9e7ff4a73bc98a0dcd410eff87dffff3aa1c (patch)
tree992024e5df64d7735618d2b0d0f85bbc313c6416 /src/compiler.rs
parent674695d7e28f03218aa5a3facd933b87d508ea7d (diff)
downloadsylt-e93e9e7ff4a73bc98a0dcd410eff87dffff3aa1c.tar.gz
external functions proc macro
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index 866e0a3..559068d 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -182,7 +182,7 @@ impl Frame {
}
}
-pub type RustFunction = fn(&[Value]) -> Value;
+pub type RustFunction = fn(&[Value], bool) -> Result<Value, ErrorKind>;
#[derive(Debug, Clone)]
pub struct Blob {