mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 21:08:40 +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 {
|
macro_rules! im_str {
|
||||||
($e:tt) => ({
|
($e:tt) => ({
|
||||||
unsafe {
|
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)*) => ({
|
($e:tt, $($arg:tt)*) => ({
|
||||||
unsafe {
|
unsafe {
|
||||||
&::imgui::ImString::from_utf8_with_nul_unchecked(
|
&$crate::ImString::from_utf8_with_nul_unchecked(
|
||||||
format!(concat!($e, "\0"), $($arg)*).into_bytes())
|
format!(concat!($e, "\0"), $($arg)*).into_bytes())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user