File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,10 @@ mod header_binding {
64
64
// and have been erroneously used for target platforms in this library in the past. Make sure
65
65
// to double-check them wherever they occur.
66
66
67
- if !cfg ! ( target_arch = "x86_64" ) {
68
- panic ! ( "unsupported host architecture: build from x86_64 instead" ) ;
69
- }
67
+ assert ! (
68
+ cfg!( target_arch = "x86_64" ) ,
69
+ "unsupported host architecture: build from x86_64 instead"
70
+ ) ;
70
71
71
72
builder = builder
72
73
. clang_arg ( "-I" )
@@ -457,9 +458,10 @@ mod api_wrapper {
457
458
458
459
for api in api_root. all_apis ( ) {
459
460
// Currently don't support Godot 4.0
460
- if api. version . major == 1 && api. version . minor == 3 {
461
- panic ! ( "GodotEngine v4.* is not yet supported. See https://github.com/godot-rust/godot-rust/issues/396" ) ;
462
- }
461
+ assert ! (
462
+ !( api. version. major == 1 && api. version. minor == 3 ) ,
463
+ "GodotEngine v4.* is not yet supported. See https://github.com/godot-rust/godot-rust/issues/396"
464
+ ) ;
463
465
}
464
466
465
467
let struct_fields = godot_api_functions ( & api_root) ;
You can’t perform that action at this time.
0 commit comments