libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
internal_util.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include<libtransistor/err.h>
13 
17 #define INITIALIZATION_GUARD(module) if(module ## _initializations <= 0) { return LIBTRANSISTOR_ERR_MODULE_NOT_INITIALIZED; }
18 
22 #define INITIALIZATION_GUARD_RETURN_VOID(module) if(module ## _initializations <= 0) { return; }
23 
24 #ifdef __cplusplus
25 }
26 #endif
Error definitions.