libUTL++
utl_config.h
1 //
2 // libUTL++ configuration
3 //
4 // This file sets a few definitions for the library which derive from
5 // the value of the DEBUG preprocessor macro.
6 //
8 
9 #pragma once
10 
12 // global new/delete support /////////////////////////////////////////////////
14 
15 #define UTL_GBLNEW_MODE_DEBUG 1
16 #define UTL_GBLNEW_MODE_RELEASE 2
17 
19 
20 // default UTL_GBLNEW_MODE for each build
21 #ifndef UTL_GBLNEW_MODE
22 #if defined(DEBUG) && UTL_HOST_OS != UTL_OS_MINGW
23 #define UTL_GBLNEW_MODE UTL_GBLNEW_MODE_DEBUG
24 #else
25 #define UTL_GBLNEW_MODE UTL_GBLNEW_MODE_RELEASE
26 #endif
27 #endif