This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
MyGameFramework/lib/stl/include/stlconfig/switchstl.h
Gered c5cdddbeaa initial commit
current versions of all of my basic framework sources, build configurations/scripts, and supporting assets
2013-01-31 12:53:05 -05:00

25 lines
888 B
C

#ifndef __STLCONFIG_SWITCHSTL_H_INCLUDED__
#define __STLCONFIG_SWITCHSTL_H_INCLUDED__
#if defined(USE_STD_STL) && defined(USE_EASTL_STL)
#error USE_STL_STL and USE_EASTL_STL cannot both be defined.
#endif
// pick a default STL if an STL implementation define doesn't exist
#if !defined(USE_STD_STL) && !defined(USE_EASTL_STL)
#ifdef DEBUG
// use the standard STL for debug builds for those debuggers which
// have decent debugger visualizers for STL containers (which typically
// will only work out-of-the-box with the standard STL)
#define USE_STD_STL
#else
// for all other cases, use EASTL by default (this would be release
// builds, or where the debugger being used doesn't provide any kind of
// debugger assistance for STL containers at all and so it doesn't
// matter which one is used for debugging purposes)
#define USE_EASTL_STL
#endif
#endif
#endif