Move CRT Cmdline args obj & impl into libspinscale

This commit is contained in:
2026-02-17 10:22:25 -04:00
parent 3f3ff1283f
commit 18b632e5bb
3 changed files with 22 additions and 7 deletions

View File

@@ -76,6 +76,7 @@ add_library(spinscale SHARED
src/componentThread.cpp
src/component.cpp
src/puppetApplication.cpp
src/runtime.cpp
)
# Conditionally add qutexAcquisitionHistoryTracker.cpp only when debug locks

View File

@@ -53,6 +53,8 @@ struct CrtCommandLineArgs
static void set(int argc, char *argv[], char *envp[]);
};
extern CrtCommandLineArgs crtCommandLineArgs;
} // namespace sscl
#endif // _MARIONETTE_H

12
src/runtime.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include <spinscale/marionette.h>
namespace sscl {
CrtCommandLineArgs crtCommandLineArgs(0, nullptr, nullptr);
void CrtCommandLineArgs::set(int argc, char *argv[], char *envp[])
{
crtCommandLineArgs = CrtCommandLineArgs(argc, argv, envp);
}
} // namespace sscl