SNUCSE-CTA / GI

Apache License 2.0
13 stars 12 forks source link

Context #24

Closed gmgu closed 4 years ago

gmgu commented 4 years ago

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.