mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
Use $crate instead of ::imgui.
This commit is contained in:
parent
a74a6c05f2
commit
bef6702a8f
@ -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