mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-20 16:53:07 +08:00
14 lines
323 B
C
14 lines
323 B
C
|
|
#ifndef __MODULES_H
|
||
|
|
#define __MODULES_H
|
||
|
|
|
||
|
|
#define RETURN_VALUE_MODULE_NONACTIVE -1
|
||
|
|
//Access user-defined config
|
||
|
|
#include "../../user/include/modules/module_manager.h"
|
||
|
|
|
||
|
|
|
||
|
|
#define CHECK_MODULE_ACTIVE(module, func)\
|
||
|
|
if( module_config. module##_module.all != ON){\
|
||
|
|
return RETURN_VALUE_MODULE_NONACTIVE;\
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif
|