mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-11-16 07:39:24 +01:00
23 lines
916 B
C
23 lines
916 B
C
|
#include <wups.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
typedef struct ConfigItemStub {
|
||
|
WUPSConfigItemHandle handle;
|
||
|
} ConfigItemStub;
|
||
|
|
||
|
bool WUPSConfigItemStub_AddToCategory(WUPSConfigCategoryHandle cat, const char *configID, const char *displayName);
|
||
|
|
||
|
#define WUPSConfigItemStub_AddToCategoryHandled(__config__, __cat__, __configID__, __displayName__) \
|
||
|
do { \
|
||
|
if (!WUPSConfigItemStub_AddToCategory(__cat__, __configID__, __displayName__)) { \
|
||
|
WUPSConfig_Destroy(__config__); \
|
||
|
return 0; \
|
||
|
} \
|
||
|
} while (0)
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|