Re:What happens before main() is executed in C and why is it...
by x0054 on Saturday May 05, 2018 @12:31AM
(#17000318)
That's funny. In Swift i needed to make sure something runs as early as possible and I had to do the same trick. Put the code in the declaration of a variable like this:
var loadTheme: Bool = { Style.loadTheme(); return true; }()
var loadTheme: Bool = { Style.loadTheme(); return true; }()