Added convenience initialize variant.

This commit is contained in:
Relintai 2022-02-05 18:41:51 +01:00
parent b2503ba587
commit 546512f3be
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,11 @@ void RCPPFramework::initialize() {
_do_initialize(); _do_initialize();
} }
void RCPPFramework::initialize(int argc, char **argv, char **envp) {
initialize();
setup_args(argc, argv, envp);
}
void RCPPFramework::setup_args(int argc, char **argv, char **envp) { void RCPPFramework::setup_args(int argc, char **argv, char **envp) {
// Don't use the error macros here, they might not work before initialization // Don't use the error macros here, they might not work before initialization
if (!_initialized) { if (!_initialized) {

View File

@ -19,6 +19,7 @@ public:
static void create_and_init(int argc, char **argv, char **envp); static void create_and_init(int argc, char **argv, char **envp);
void initialize(); void initialize();
void initialize(int argc, char **argv, char **envp);
void uninitialize(); void uninitialize();
void setup_args(int argc, char **argv, char **envp); void setup_args(int argc, char **argv, char **envp);