Skip to content

Commit

Permalink
fix failures
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub committed Apr 6, 2021
1 parent 71f3902 commit 2e6151e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/RuntimeGeneratedFunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2e6151e

Please sign in to comment.