Skip to content

Instantly share code, notes, and snippets.

@idank
Created December 28, 2014 07:27
Show Gist options
  • Save idank/220ec2ee03d887028621 to your computer and use it in GitHub Desktop.
Save idank/220ec2ee03d887028621 to your computer and use it in GitHub Desktop.
int _initialize_mtmm() {
// initialization code goes here...
return 1;
}
int _mtmm_initialized = _initialize_mtmm();
void* malloc(size_t) {
// just to be safe...
if (!_mtmm_initialized) {
abort();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment