[nostalgia] Restructure module register guards to behave more like include guards
This commit is contained in:
parent
3b8a9af97b
commit
aea1aabcd7
@ -2,8 +2,6 @@
|
|||||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <keel/module.hpp>
|
|
||||||
|
|
||||||
#include <nostalgia/core/keelmodule.hpp>
|
#include <nostalgia/core/keelmodule.hpp>
|
||||||
#include <nostalgia/scene/keelmodule.hpp>
|
#include <nostalgia/scene/keelmodule.hpp>
|
||||||
|
|
||||||
@ -14,9 +12,9 @@ void registerKeelModules() noexcept {
|
|||||||
if (modulesRegistered) {
|
if (modulesRegistered) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
modulesRegistered = true;
|
||||||
keel::registerModule(core::keelModule());
|
keel::registerModule(core::keelModule());
|
||||||
keel::registerModule(scene::keelModule());
|
keel::registerModule(scene::keelModule());
|
||||||
modulesRegistered = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,9 @@ void registerStudioModules() noexcept {
|
|||||||
if (modulesRegistered) {
|
if (modulesRegistered) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
modulesRegistered = true;
|
||||||
studio::registerModule(core::studioModule());
|
studio::registerModule(core::studioModule());
|
||||||
studio::registerModule(scene::studioModule());
|
studio::registerModule(scene::studioModule());
|
||||||
modulesRegistered = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user