mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-08 14:05:10 +01:00
42 lines
667 B
C
42 lines
667 B
C
#ifdef DEBUG
|
|
#include <stdint.h>
|
|
#include <whb/log_cafe.h>
|
|
#include <whb/log_module.h>
|
|
#include <whb/log_udp.h>
|
|
|
|
uint32_t moduleLogInit = false;
|
|
uint32_t cafeLogInit = false;
|
|
uint32_t udpLogInit = false;
|
|
#endif // DEBUG
|
|
|
|
void initLogging ()
|
|
{
|
|
#ifdef DEBUG
|
|
if (!(moduleLogInit = WHBLogModuleInit ()))
|
|
{
|
|
cafeLogInit = WHBLogCafeInit ();
|
|
udpLogInit = WHBLogUdpInit ();
|
|
}
|
|
#endif // DEBUG
|
|
}
|
|
|
|
void deinitLogging ()
|
|
{
|
|
#ifdef DEBUG
|
|
if (moduleLogInit)
|
|
{
|
|
WHBLogModuleDeinit ();
|
|
moduleLogInit = false;
|
|
}
|
|
if (cafeLogInit)
|
|
{
|
|
WHBLogCafeDeinit ();
|
|
cafeLogInit = false;
|
|
}
|
|
if (udpLogInit)
|
|
{
|
|
WHBLogUdpDeinit ();
|
|
udpLogInit = false;
|
|
}
|
|
#endif // DEBUG
|
|
} |