Skip to content

Commit b916c66

Browse files
YgorSouzahacknus
authored andcommitted
include_image! now accepts expressions (emilk#4521)
Closes emilk#4510
1 parent e66da11 commit b916c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/egui/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ pub fn warn_if_debug_build(ui: &mut crate::Ui) {
507507
/// ```
508508
#[macro_export]
509509
macro_rules! include_image {
510-
($path: literal) => {
510+
($path:expr $(,)?) => {
511511
$crate::ImageSource::Bytes {
512512
uri: ::std::borrow::Cow::Borrowed(concat!("bytes://", $path)),
513513
bytes: $crate::load::Bytes::Static(include_bytes!($path)),

0 commit comments

Comments
 (0)