Skip to content

Commit

Permalink
C++: document the SLINT_FEATURE_* macros
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Jul 5, 2024
1 parent cc47d68 commit 6b1c02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/cpp/cbindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ macro_rules! declare_features {
let mut defines = String::new();
$(
if self.$f {
defines = format!("{defines}#define SLINT_FEATURE_{}\n", stringify!($f).to_ascii_uppercase());
defines = format!("{defines}///This macro is defined when Slint was configured with the SLINT_FEATURE_{0} flag enabled\n#define SLINT_FEATURE_{0}\n", stringify!($f).to_ascii_uppercase());
};
)*
defines
Expand Down

0 comments on commit 6b1c02b

Please sign in to comment.