Skip to content

Commit

Permalink
include_image! now accepts expressions (#4521)
Browse files Browse the repository at this point in the history
Closes #4510
  • Loading branch information
YgorSouza authored May 21, 2024
1 parent 262a8bc commit 7035aa4
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 7035aa4

Please sign in to comment.