redjack/libcork — pull request #32 by dcreager (2012-12-27 14:25:18+00:00)
Title: Library initializer functions

I'd like to expose a new libcork macro for defining initialization functions — a function that's automatically called at program startup time. (Before `main`.) On GCC, you do that using the [`constructor` attribute](http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#index-g_t_0040code_007bconstructor_007d-function-attribute-2570). This [StackOverflow post](http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc) describes the equivalent in Visual Studio, for when we do a proper Windows port.