From 2e6151e26a40c538185001ad9b256d888b0cf6e5 Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Tue, 6 Apr 2021 12:49:55 +0200 Subject: [PATCH] fix failures --- src/RuntimeGeneratedFunctions.jl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/RuntimeGeneratedFunctions.jl b/src/RuntimeGeneratedFunctions.jl index a6dc09a..9e3b888 100644 --- a/src/RuntimeGeneratedFunctions.jl +++ b/src/RuntimeGeneratedFunctions.jl @@ -73,10 +73,16 @@ function _check_rgf_initialized(mods...) end end -function RuntimeGeneratedFunction(cache_module::Module, context_module::Module, code) +function RuntimeGeneratedFunction( + cache_module::Module, context_module::Module, code; opaque_closures=true, + ) _check_rgf_initialized(cache_module, context_module) - RuntimeGeneratedFunction(getfield(cache_module, _tagname), - getfield(context_module, _tagname), code) + RuntimeGeneratedFunction( + getfield(cache_module, _tagname), + getfield(context_module, _tagname), + code; + opaque_closures = opaque_closures + ) end macro RuntimeGeneratedFunction(code)