[Feature Request] Build options
Posted: Mon Oct 13, 2008 10:13
I apologize for bad English
I would like to have advanced build settings
such as:
disabling the use of external libraries ( #define CEGUI_NO_USE_FREETYPE )
disabling the use of components of default ( CEGUI_NO_USE_DEFAULT_LOGGER, CEGUI_NO_USE_DEFAULT_... )
disabling of a mechanism of exceptions ( CEGUI_NO_USE_EXCEPTIONS )
I think it should be able to collect full library does not use the services OS
proposed development:
and usage:
I would like to have advanced build settings
such as:
disabling the use of external libraries ( #define CEGUI_NO_USE_FREETYPE )
disabling the use of components of default ( CEGUI_NO_USE_DEFAULT_LOGGER, CEGUI_NO_USE_DEFAULT_... )
disabling of a mechanism of exceptions ( CEGUI_NO_USE_EXCEPTIONS )
I think it should be able to collect full library does not use the services OS
proposed development:
Code: Select all
#ifdef CEGUI_NO_USE_EXCEPTIONS
#define CEGUI_TRY if (true)
#define CEGUI_CATCH(ARGS) else
#define CEGUI_THROW(EXCEPTION) user_defined_exception_handler_function(EXCEPTION)
#else
#define CEGUI_TRY try
#define CEGUI_CATCH(ARGS) catch(ARGS)
#define CEGUI_THROW(EXCEPTION) throw EXCEPTION
#endif
and usage:
Code: Select all
CEGUI_TRY
{
....
CEGUI_THROW(UndefinedException("..."))
}
CEGUI_CATCH(...)
{
...
}