Skip to content

Commit

Permalink
include_image! now accepts expressions (emilk#4521)
Browse files Browse the repository at this point in the history
Closes emilk#4510
  • Loading branch information
YgorSouza authored and hacknus committed Oct 30, 2024
1 parent e66da11 commit b916c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ pub fn warn_if_debug_build(ui: &mut crate::Ui) {
/// ```
#[macro_export]
macro_rules! include_image {
($path: literal) => {
($path:expr $(,)?) => {
$crate::ImageSource::Bytes {
uri: ::std::borrow::Cow::Borrowed(concat!("bytes://", $path)),
bytes: $crate::load::Bytes::Static(include_bytes!($path)),
Expand Down

0 comments on commit b916c66

Please sign in to comment.