Currently, McMini will segfault if a program makes explicit calls to McMini's wrapper functions (e.g. mc_pthread_mutex_lock()) without first calling mc_init(). We should simply bail out and recognize if/when mc_init() has been called. The only slightly tricky bit will be checking for mc_init() before each wrapper function has been called. If we can check without necessarily. We should be able to use the MC_SHARED_LIBRARY macro here
Currently, McMini will segfault if a program makes explicit calls to McMini's wrapper functions (e.g.
mc_pthread_mutex_lock()) without first callingmc_init(). We should simply bail out and recognize if/whenmc_init()has been called. The only slightly tricky bit will be checking formc_init()before each wrapper function has been called. If we can check without necessarily. We should be able to use theMC_SHARED_LIBRARYmacro here