ScummVM API documentation
internal_plugins.h
1#if !defined(INCLUDED_FROM_BASE_PLUGINS_H) && !defined(RC_INVOKED)
2#error This file may only be included by base/plugins.h or dists/scummvm.rc
3#endif
4
5// plugin macros are defined in this simple internal header so that scummvm.rc
6// can include them without causing problems for Windows resource compilers.
7
8#define STATIC_PLUGIN 1
9#define DYNAMIC_PLUGIN 2
10
11#define PLUGIN_ENABLED_STATIC(ID) \
12 (ENABLE_##ID && !PLUGIN_ENABLED_DYNAMIC(ID))
13
14#ifdef DYNAMIC_MODULES
15 #define PLUGIN_ENABLED_DYNAMIC(ID) \
16 (ENABLE_##ID && (ENABLE_##ID == DYNAMIC_PLUGIN))
17#else
18 #define PLUGIN_ENABLED_DYNAMIC(ID) 0
19#endif
20
21#define PLUGIN_ENABLED(ID) (ENABLE_##ID)