https://github.com/scummvm/scummvm
Raw File
Tip revision: f9f4400c783b4c9c6007f333277fb08ca4972f59 authored by Eugene Sandulenko on 04 October 2019, 21:28:18 UTC
DISTS: Generated Code::Blocks and MSVC project files
Tip revision: f9f4400
internal_plugins.h
#if !defined(INCLUDED_FROM_BASE_PLUGINS_H) && !defined(RC_INVOKED)
#error This file may only be included by base/plugins.h or dists/scummvm.rc
#endif

// plugin macros are defined in this simple internal header so that scummvm.rc
//  can include them without causing problems for Windows resource compilers.

#define STATIC_PLUGIN 1
#define DYNAMIC_PLUGIN 2

#define PLUGIN_ENABLED_STATIC(ID) \
	(ENABLE_##ID && !PLUGIN_ENABLED_DYNAMIC(ID))

#ifdef DYNAMIC_MODULES
	#define PLUGIN_ENABLED_DYNAMIC(ID) \
		(ENABLE_##ID && (ENABLE_##ID == DYNAMIC_PLUGIN))
#else
	#define PLUGIN_ENABLED_DYNAMIC(ID) 0
#endif
back to top