Skip to content

Commit c7c7455

Browse files
committed
Remove generate_gdextension_api_version! macro
We will soon have a #[cfg] definition that already needs to maintain a manual list of all Godot versions. This is just another place to maintain, and basically acts as a test whether #[cfg(before_api/since_api)] are working correctly. They currently do; if they don't, this will likely manifest differently anyway.
1 parent 1e52786 commit c7c7455

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

godot-core/src/lib.rs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -34,47 +34,6 @@ mod gen {
3434
include!(concat!(env!("OUT_DIR"), "/mod.rs"));
3535
}
3636

37-
// ----------------------------------------------------------------------------------------------------------------------------------------------
38-
// API version check
39-
40-
macro_rules! generate_gdextension_api_version {
41-
(
42-
$(
43-
($name:ident, $gdextension_api:ident) => {
44-
$($version:literal, )*
45-
}
46-
),* $(,)?
47-
) => {
48-
$(
49-
$(
50-
#[cfg($gdextension_api = $version)]
51-
#[allow(dead_code)]
52-
const $name: &str = $version;
53-
)*
54-
)*
55-
};
56-
}
57-
58-
// If multiple gdextension_api_version's are found then this will generate several structs with the same
59-
// name, causing a compile error.
60-
//
61-
// This includes all versions we're developing for, including unreleased future versions.
62-
generate_gdextension_api_version!(
63-
(GDEXTENSION_EXACT_API, gdextension_exact_api) => {
64-
"4.0",
65-
"4.0.1",
66-
"4.0.2",
67-
"4.0.3",
68-
"4.0.4",
69-
"4.1",
70-
"4.1.1",
71-
},
72-
(GDEXTENSION_API, gdextension_minor_api) => {
73-
"4.0",
74-
"4.1",
75-
},
76-
);
77-
7837
// ----------------------------------------------------------------------------------------------------------------------------------------------
7938
// Hidden but accessible symbols
8039

0 commit comments

Comments
 (0)