Skip to main content

luaur_compile_cli/macros/
write_pair_string.rs

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