add ending headers

This commit is contained in:
2025-03-30 12:48:45 -05:00
parent 5fe172bc0d
commit 20ab1501ff
8 changed files with 36 additions and 28 deletions

10
include/endApp.h Normal file
View File

@@ -0,0 +1,10 @@
#include "Archimedes.h"
#ifdef APP_TYPE
inline Archimedes::App* MakeApp() {
return new APP_TYPE();
}
#undef APP_TYPE
#endif

12
include/endModule.h Normal file
View File

@@ -0,0 +1,12 @@
#include "Archimedes.h"
#ifdef MODULE_TYPE
extern "C" {
Archimedes::Module* create(void* handle, Archimedes::App* app) {
return new MODULE_TYPE(handle, app);
}
}
#undef MODULE_TYPE
#endif