mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Initial commit of ResInsight version 0.4.8
This commit is contained in:
58
VisualizationModules/LibCore/cvfConfigCore.h
Normal file
58
VisualizationModules/LibCore/cvfConfigCore.h
Normal file
@@ -0,0 +1,58 @@
|
||||
//##################################################################################################
|
||||
//
|
||||
// Custom Visualization Core library
|
||||
// Copyright (C) 2011-2012 Ceetron AS
|
||||
//
|
||||
// This library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// See the GNU General Public License at <<http://www.gnu.org/licenses/gpl.html>>
|
||||
// for more details.
|
||||
//
|
||||
//##################################################################################################
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
|
||||
// Define this one to tell windows.h to not define min() and max() as macros
|
||||
#if defined WIN32 && !defined NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
|
||||
|
||||
// Used to keep track of all instances of classes derived from Object.
|
||||
// Can be used to detect memory leaks in combination with the static member
|
||||
// functions: Object::activeObjectInstances() and Object::dumpActiveObjectInstances()
|
||||
// 0 - disable tracking of active object instances
|
||||
// 1 - track active instances in debug builds
|
||||
// 2 - track active instances in BOTH debug and release builds
|
||||
#ifndef CVF_TRACK_ACTIVE_OBJECT_INSTANCES
|
||||
#define CVF_TRACK_ACTIVE_OBJECT_INSTANCES 0
|
||||
#endif
|
||||
|
||||
|
||||
// Behavior of assert macros
|
||||
// In debug builds, all asserts are in action, including tight asserts
|
||||
// In release builds, tight asserts are disabled by default. Normal asserts are still in action (including CVF_FAIL_...)
|
||||
|
||||
#ifndef CVF_ENABLE_ASSERTS
|
||||
#define CVF_ENABLE_ASSERTS 1
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef CVF_ENABLE_TIGHT_ASSERTS
|
||||
#ifdef _DEBUG
|
||||
#define CVF_ENABLE_TIGHT_ASSERTS 1
|
||||
#else
|
||||
#define CVF_ENABLE_TIGHT_ASSERTS 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user