mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Merge pull request #2688 from DimitrisJim/fix-named-function
Fix arguments passed to make_funcdef.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}};
|
||||
|
||||
Reference in New Issue
Block a user