File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,10 @@ impl<T: 'static + Game> GameRunner<T> {
204
204
205
205
#[ macro_export]
206
206
macro_rules! crankstart_game {
207
- ( $game_struct: tt ) => {
207
+ ( $game_struct: ty ) => {
208
208
crankstart_game!( $game_struct, PDSystemEvent :: kEventInit) ;
209
209
} ;
210
- ( $game_struct: tt , $pd_system_event: expr) => {
210
+ ( $game_struct: ty , $pd_system_event: expr) => {
211
211
pub mod game_setup {
212
212
extern crate alloc;
213
213
use super :: * ;
@@ -262,7 +262,7 @@ macro_rules! crankstart_game {
262
262
. unwrap_or_else( |err| {
263
263
log_to_console!( "Got error while setting update callback: {err:#}" ) ;
264
264
} ) ;
265
- let game = match $game_struct:: new( & mut playdate) {
265
+ let game = match < $game_struct> :: new( & mut playdate) {
266
266
Ok ( game) => Some ( game) ,
267
267
Err ( err) => {
268
268
log_to_console!( "Got error while creating game: {err:#}" ) ;
You can’t perform that action at this time.
0 commit comments