[nostalgia,olympic,studio] Add Olympic applib system, convert Studio to use it

This commit is contained in:
2023-12-10 20:39:08 -06:00
parent b6b59e77f5
commit 393259a010
10 changed files with 110 additions and 36 deletions

View File

@@ -0,0 +1,18 @@
/*
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
*/
#pragma once
#include <ox/std/stringview.hpp>
#define OLYMPIC_APP_PROVIDERS(projectName, projectNamespace) \
namespace projectNamespace { \
void registerKeelModules() noexcept; \
void registerStudioModules() noexcept; \
} \
namespace olympic { \
ox::StringView appName() noexcept {return projectName OLYMPIC_APP;} \
void loadKeelModules() noexcept {projectNamespace::registerKeelModules();} \
void loadStudioModules() noexcept {projectNamespace::registerStudioModules();} \
}