mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Added convenience initialize variant.
This commit is contained in:
parent
b2503ba587
commit
546512f3be
@ -48,6 +48,11 @@ void RCPPFramework::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) {
|
||||
// Don't use the error macros here, they might not work before initialization
|
||||
if (!_initialized) {
|
||||
|
@ -19,6 +19,7 @@ public:
|
||||
static void create_and_init(int argc, char **argv, char **envp);
|
||||
|
||||
void initialize();
|
||||
void initialize(int argc, char **argv, char **envp);
|
||||
void uninitialize();
|
||||
|
||||
void setup_args(int argc, char **argv, char **envp);
|
||||
|
Loading…
Reference in New Issue
Block a user