ManaPlus
Macros | Functions
dumpsizes.cpp File Reference

(986a3bf)

#include "utils/dumpsizes.h"
#include "logger.h"
#include "utils/cast.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define dumpSize(str)    logger->log(" sizeof("#str"): %d", CAST_S32(sizeof(str)))
 

Functions

void dumpSizes ()
 

Macro Definition Documentation

◆ dumpSize

#define dumpSize (   str)     logger->log(" sizeof("#str"): %d", CAST_S32(sizeof(str)))

Definition at line 30 of file dumpsizes.cpp.

Function Documentation

◆ dumpSizes()

void dumpSizes ( )

Definition at line 33 of file dumpsizes.cpp.

34 {
35  logger->log("Type sizes:");
36  dumpSize(char);
37  dumpSize(short);
38  dumpSize(int);
39  dumpSize(long);
40  dumpSize(size_t);
41 }
void log(const char *const log_text,...)
Definition: logger.cpp:269
#define dumpSize(str)
Definition: dumpsizes.cpp:30
Logger * logger
Definition: logger.cpp:89

References dumpSize, Logger::log(), and logger.