From 7aeaa5def4405d62a4803eca4cfdb07e17c8289c Mon Sep 17 00:00:00 2001 From: Лач Date: Sun, 28 Jun 2020 12:32:40 +0000 Subject: [PATCH] feat(bindings): max stack --- --- a/bindings/jsonnet/src/lib.rs +++ b/bindings/jsonnet/src/lib.rs @@ -68,9 +68,10 @@ Box::new(state) } -// TODO #[no_mangle] -pub extern "C" fn jsonnet_max_stack(_vm: &EvaluationState, _v: c_uint) {} +pub extern "C" fn jsonnet_max_stack(vm: &EvaluationState, v: c_uint) { + vm.set_max_stack(v as usize); +} // jrsonnet currently have no GC, so these functions is no-op #[no_mangle] -- gitstuff