mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-16 07:58:33 +00:00
Merge pull request #95 from shawnscode/macro
Use $crate instead of ::imgui.
This commit is contained in:
commit
b4ff8411f7
@ -51,12 +51,12 @@ pub struct ImGui {
|
||||
macro_rules! im_str {
|
||||
($e:tt) => ({
|
||||
unsafe {
|
||||
::imgui::ImStr::from_utf8_with_nul_unchecked(concat!($e, "\0").as_bytes())
|
||||
$crate::ImStr::from_utf8_with_nul_unchecked(concat!($e, "\0").as_bytes())
|
||||
}
|
||||
});
|
||||
($e:tt, $($arg:tt)*) => ({
|
||||
unsafe {
|
||||
&::imgui::ImString::from_utf8_with_nul_unchecked(
|
||||
&$crate::ImString::from_utf8_with_nul_unchecked(
|
||||
format!(concat!($e, "\0"), $($arg)*).into_bytes())
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user