Skip to main content

luaur_compile_cli/macros/
write_name.rs

1#[allow(unused_macros)]
2macro_rules! WRITE_NAME {
3    ($fp:expr, $indent:expr, $name:ident) => {
4        libc::fprintf(
5            $fp,
6            concat!($indent, "\"", stringify!($name), "\": ").as_ptr() as *const core::ffi::c_char,
7        )
8    };
9}
10
11pub(crate) use WRITE_NAME;