write_fn_step convenience macro

This commit is contained in:
2023-06-01 19:10:07 +01:00
parent 6e545be8a7
commit 01aa37b27d
9 changed files with 154 additions and 39 deletions

View File

@@ -65,7 +65,7 @@ use crate::Primitive;
#[macro_export]
macro_rules! atomic_impl {
($typ:ident) => {
atomic_impl! {$typ, |this: &Self, _: $crate::interpreter::Context| {
$crate::atomic_impl! {$typ, |this: &Self, _: $crate::interpreter::Context| {
use $crate::foreign::ExternFn;
Ok(this.clone().to_xfn_cls())
}}