Merge pull request #2688 from DimitrisJim/fix-named-function

Fix arguments passed to make_funcdef.
This commit is contained in:
Noah
2021-06-04 12:01:18 -05:00
committed by GitHub

View File

@@ -229,11 +229,11 @@ macro_rules! named_function {
let ctx: &$crate::PyContext = &$ctx;
$crate::__exports::paste::expr! {
ctx.make_funcdef(
stringify!($module),
stringify!($func),
[<$module _ $func>],
)
.into_function()
.with_module(ctx.new_str(stringify!($func).to_owned()))
.with_module(ctx.new_str(stringify!($module).to_owned()))
.build(ctx)
}
}};