Skip to content

Commit 2e6151e

Browse files
committed
fix failures
1 parent 71f3902 commit 2e6151e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/RuntimeGeneratedFunctions.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,16 @@ function _check_rgf_initialized(mods...)
7373
end
7474
end
7575

76-
function RuntimeGeneratedFunction(cache_module::Module, context_module::Module, code)
76+
function RuntimeGeneratedFunction(
77+
cache_module::Module, context_module::Module, code; opaque_closures=true,
78+
)
7779
_check_rgf_initialized(cache_module, context_module)
78-
RuntimeGeneratedFunction(getfield(cache_module, _tagname),
79-
getfield(context_module, _tagname), code)
80+
RuntimeGeneratedFunction(
81+
getfield(cache_module, _tagname),
82+
getfield(context_module, _tagname),
83+
code;
84+
opaque_closures = opaque_closures
85+
)
8086
end
8187

8288
macro RuntimeGeneratedFunction(code)

0 commit comments

Comments
 (0)