libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros
internal_util.h File Reference

Various utility functions internal to libtransistor. More...

#include <libtransistor/err.h>
Include dependency graph for internal_util.h:

Go to the source code of this file.

Macros

#define INITIALIZATION_GUARD(module)   if(module ## _initializations <= 0) { return LIBTRANSISTOR_ERR_MODULE_NOT_INITIALIZED; }
 Asserts that the given module has been initialized, returning an appropriate result_t if it has not.
 
#define INITIALIZATION_GUARD_RETURN_VOID(module)   if(module ## _initializations <= 0) { return; }
 Asserts that the given module has been initialized, returning if it has not.
 

Detailed Description

Various utility functions internal to libtransistor.