commit d5de8d3817ccdf91053428af843846f96d1708dc parent e8d6bd859c4811e40342f0b4d84854fc9e2bf468 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Aug 16 15:47:54 +0200 Use megabytes to specify persistent memory size Diffstat:
main.cc | | | 2 | +- |
diff --git a/main.cc b/main.cc @@ -64,7 +64,7 @@ bool should_reload_game( const char * const path, const time_t lib_write_time ) int main( int argc, char ** argv ) { Game game = load_game( GAME_LIBRARY_PATH ); GameMemory mem = { }; - mem.persistent_size = 64LL * 1024 * 1024; + mem.persistent_size = megabytes( 64 ); mem.persistent = new u8[ mem.persistent_size ]; GameState * state = ( GameState * ) reserve_persistent( mem, sizeof( GameState ) );