I created Context class in global.hpp.
Context class contains mark variables and memory manager, which were global variables declared in global.hpp.
Now we access globally-used variables by an instance of Context class, instead of direct access of them using extern keyword.
This change will prevent a possible bug that can be occur when we publish GI library.
Thanks to charsyam for the constructive comment.
I created Context class in global.hpp. Context class contains mark variables and memory manager, which were global variables declared in global.hpp. Now we access globally-used variables by an instance of Context class, instead of direct access of them using extern keyword. This change will prevent a possible bug that can be occur when we publish GI library. Thanks to charsyam for the constructive comment.