File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 12
12
13
13
namespace ze_lib
14
14
{
15
- #ifdef DYNAMIC_LOAD_LOADER
16
- context_t &init_context () {
17
- static context_t loader_context;
18
- return loader_context;
19
- }
20
- #endif
21
15
// /////////////////////////////////////////////////////////////////////////////
22
16
#ifndef DYNAMIC_LOAD_LOADER
23
17
context_t *context;
24
18
#else
25
- context_t *context = &init_context () ;
19
+ context_t *context = &loader_context ;
26
20
#endif
27
21
bool destruction = false ;
28
22
Original file line number Diff line number Diff line change @@ -177,5 +177,8 @@ namespace ze_lib
177
177
178
178
extern context_t *context;
179
179
extern bool destruction;
180
+ #ifdef DYNAMIC_LOAD_LOADER
181
+ static context_t loader_context;
182
+ #endif
180
183
181
184
} // namespace ze_lib
You can’t perform that action at this time.
0 commit comments