diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-20 22:11:05 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-20 22:11:05 -0700 |
commit | 261bf12c91286ffca9fcb0bf761d6d1666359dc7 (patch) | |
tree | 4b6d388843bad1aadae666fa8597c9f0d50488b0 /util.cpp | |
parent | b08fb866378693d2e75f17fdfe5e60401a29136a (diff) |
Lots of miscellaneous cleanup. Unified the path_get_cd_path, path_allocate_cd_path, etc. functions
Diffstat (limited to 'util.cpp')
-rw-r--r-- | util.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
@@ -47,41 +47,6 @@ */ #define SB_MAX_SIZE (128*1024*1024) -/** - Handle oom condition. Default action is to print a stack trace and - exit, but an alternative action can be specified. - */ -#define oom_handler( p ) \ - { \ - if( oom_handler_internal == util_die_on_oom ) \ - { \ - DIE_MEM(); \ - } \ - oom_handler_internal( p ); \ - } \ - - - -void util_die_on_oom( void * p); - -void (*oom_handler_internal)(void *) = &util_die_on_oom; - -void (*util_set_oom_handler( void (*h)(void *) ))(void *) -{ - void (*old)(void *) = oom_handler_internal; - - if( h ) - oom_handler_internal = h; - else - oom_handler_internal = &util_die_on_oom; - - return old; -} - -void util_die_on_oom( void *p ) -{ -} - int mini( int a, int b ) { |