- Always compile my_new.cc and safemalloc.c with mysys
Preprocessor macros USE_MYSYS_NEW and -DSAFEMALLOC are used to conditionally compile safemalloc or overwritten new/delete. -Define dummy symbol in my_new.cc in case -DUSE_MYSYS_NEW is not set. This avoids compiler/linker warnings about an essentially empty file being compiled.
Showing
Please register or sign in to comment