UFO: Alien Invasion
|
Small utility that shows the size of some of the structs that are used in UFO:AI. More...
#include <SDL_opengl.h>
#include <SDL_main.h>
#include <SDL_thread.h>
#include "../common/common.h"
#include "../shared/shared.h"
#include "../server/server.h"
#include "../client/client.h"
#include "../client/renderer/r_state.h"
#include "../client/ui/ui_main.h"
#include "../client/ui/ui_behaviour.h"
#include "../client/cgame/campaign/cp_campaign.h"
#include "../client/cgame/campaign/cp_geoscape.h"
#include "../client/cgame/campaign/cp_hospital.h"
#include "../client/cgame/campaign/cp_missions.h"
#include "../client/cgame/campaign/cp_nation.h"
#include "../client/cgame/campaign/cp_overlay.h"
#include "../client/cgame/campaign/cp_ufo.h"
#include "../client/cgame/campaign/cp_time.h"
#include "../client/battlescape/cl_battlescape.h"
#include "../client/cgame/campaign/cp_alien_interest.h"
Go to the source code of this file.
Macros | |
#define | STRUCTFORMAT "%24s" |
#define | SIZEFORMAT "%12s" |
#define | TYPESIZE(type) printf(STRUCTFORMAT ": " SIZEFORMAT " KB\n", #type, MEMORY_HumanReadable(sizeof(type))); |
#define | UFO_SIZE_LENGTH_T "%03zu" |
Functions | |
static const char * | MEMORY_HumanReadable (size_t size) |
int | main (int argc, char **argv) |
Small utility that shows the size of some of the structs that are used in UFO:AI.
Definition in file memory.cpp.
#define SIZEFORMAT "%12s" |
Definition at line 28 of file memory.cpp.
Referenced by main().
#define STRUCTFORMAT "%24s" |
Definition at line 27 of file memory.cpp.
Referenced by main().
#define TYPESIZE | ( | type | ) | printf(STRUCTFORMAT ": " SIZEFORMAT " KB\n", #type, MEMORY_HumanReadable(sizeof(type))); |
Definition at line 29 of file memory.cpp.
Referenced by main().
#define UFO_SIZE_LENGTH_T "%03zu" |
Definition at line 41 of file memory.cpp.
Referenced by MEMORY_HumanReadable().
Definition at line 62 of file memory.cpp.
References SIZEFORMAT, STRUCTFORMAT, and TYPESIZE.
|
static |
Definition at line 45 of file memory.cpp.
References UFO_SIZE_LENGTH_T, and UFO_SIZE_T.