3 ms·
macro_rules! cpp_call { ($($tt:tt)*) => { unsafe { $($tt)* } } } Yeah, not pretty, but it works :P
by roblabla 6y ago
macro_rules! cpp_call {
($($tt:tt)*) => {
unsafe { $($tt)* }
}
}
Yeah, not pretty, but it works :P
- rightbyte 6y agoNature finds its ways. Seriously though, maybe comment annotation would be better than abusing the macros like that. I though there was a more direct cpp way. (Edit: As in the c preprocessor, not C++.)