CTRE Phoenix C++ 5.33.1
Platform-pack.h File Reference

Go to the source code of this file.

Macros

#define PACK_PREFIX   __pragma(pack(push, 1))
 This header implements macros for creating storage objects with 1 byte (8bit) packing across all supported platforms. More...
 
#define PACK_SUFFIX   __pragma(pack(pop))
 
#define PACK_ATTRIB   /* empty */
 
#define CTRE_ASSERT(cond)   do{}while(0)
 CTRE_ASSERT(cond) This can be moved into a seperate header later (Platform-assert). More...
 
#define CTRE_IMPLEMENT_SHUTDOWN_HANDLER(shutdown_handler)   static void shutdown_handler(int signo)
 CTRE_Application_CrashHandler(cond) This can be moved into a seperate header later. More...
 
#define CTRE_REGISTER_SHUTDOWN_HANDLER(shutdown_handler)
 

Macro Definition Documentation

◆ CTRE_ASSERT

#define CTRE_ASSERT (   cond)    do{}while(0)

CTRE_ASSERT(cond) This can be moved into a seperate header later (Platform-assert).

◆ CTRE_IMPLEMENT_SHUTDOWN_HANDLER

#define CTRE_IMPLEMENT_SHUTDOWN_HANDLER (   shutdown_handler)    static void shutdown_handler(int signo)

CTRE_Application_CrashHandler(cond) This can be moved into a seperate header later.

◆ CTRE_REGISTER_SHUTDOWN_HANDLER

#define CTRE_REGISTER_SHUTDOWN_HANDLER (   shutdown_handler)

◆ PACK_ATTRIB

#define PACK_ATTRIB   /* empty */

◆ PACK_PREFIX

#define PACK_PREFIX   __pragma(pack(push, 1))

This header implements macros for creating storage objects with 1 byte (8bit) packing across all supported platforms.

Example use...

PACK_PREFIX
typedef struct _nameOfType_t
{
    uint8_t aByte;
    uint16_t aShort;
    uint32_t aWord;
} PACK_ATTRIB nameOfType_t;
PACK_SUFFIX

◆ PACK_SUFFIX

#define PACK_SUFFIX   __pragma(pack(pop))