From b3097de75d50a018665823e28e0ee4d7a3878160 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 29 Aug 2022 12:57:31 -0700 Subject: feat(tvix/eval): Support builtins.{add,sub} First pass at supporting `builtins` for tvix. The following tests appear to be WAI: ```shell $ cd tvix/eval $ cargo build $ cargo test ``` Change-Id: I27cce23d503b17a886d1109e285e8b4be4264977 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6405 Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/src/vm.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tvix/eval/src/vm.rs') diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs index ec8c0bc506..a2b370ab92 100644 --- a/tvix/eval/src/vm.rs +++ b/tvix/eval/src/vm.rs @@ -37,6 +37,7 @@ pub struct VM { with_stack: Vec, } +#[macro_export] macro_rules! arithmetic_op { ( $self:ident, $op:tt ) => {{ let b = $self.pop(); -- cgit 1.4.1