mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[rt0] Enable SUPPORT_CPP_GLOBAL_CONSTRUCTORS
This commit is contained in:
@@ -55,7 +55,7 @@ void start() {
|
||||
* between _init_array_start and _init_array_end. So to initialize all C++
|
||||
* static objects we just have to iterate between theses two addresses and
|
||||
* call the pointed function. */
|
||||
#define SUPPORT_CPP_GLOBAL_CONSTRUCTORS 0
|
||||
#define SUPPORT_CPP_GLOBAL_CONSTRUCTORS 1
|
||||
#if SUPPORT_CPP_GLOBAL_CONSTRUCTORS
|
||||
for (cxx_constructor * c = &_init_array_start; c<&_init_array_end; c++) {
|
||||
(*c)();
|
||||
|
||||
Reference in New Issue
Block a user