modules: Fix resolving of type of disabled modules

This commit is contained in:
patrick96 2020-05-15 20:45:38 +02:00 committed by Patrick Ziegler
parent 002112df64
commit 8acedeef87
3 changed files with 12 additions and 1 deletions
include/modules

View file

@ -14,6 +14,7 @@ namespace modules {
MODULE_NAME(const bar_settings, string) { \
throw application_error("No built-in support for '" + string{MODULE_TYPE} + "'"); \
} \
static constexpr auto TYPE = MODULE_TYPE; \
string type() const { \
return ""; \
} \