mirror of
https://github.com/oatpp/oatpp.git
synced 2025-03-13 18:06:47 +08:00
Default config file
This commit is contained in:
parent
92cb65643e
commit
f1d4270fe8
56
core/base/Config.hpp
Normal file
56
core/base/Config.hpp
Normal file
@ -0,0 +1,56 @@
|
||||
/***************************************************************************
|
||||
*
|
||||
* Project _____ __ ____ _ _
|
||||
* ( _ ) /__\ (_ _)_| |_ _| |_
|
||||
* )(_)( /(__)\ )( (_ _)(_ _)
|
||||
* (_____)(__)(__)(__) |_| |_|
|
||||
*
|
||||
*
|
||||
* Copyright 2018-present, Leonid Stryzhevskyi, <lganzzzo@gmail.com>
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/**
|
||||
* This is list of default configuration params and values which you can
|
||||
* configure in the build-time
|
||||
*/
|
||||
|
||||
#ifndef oatpp_base_Config_hpp
|
||||
#define oatpp_base_Config_hpp
|
||||
|
||||
/**
|
||||
* If NOT DISABLED, counting of all object of class oatpp::base::Controllable is enabled
|
||||
* for debug purposes and detection of memory leaks.
|
||||
* Disable object counting for Release builds using '-D OATPP_DISABLE_ENV_OBJECT_COUNTERS' flag for better performance
|
||||
*/
|
||||
//#define OATPP_DISABLE_ENV_OBJECT_COUNTERS
|
||||
|
||||
/**
|
||||
* DISABLE logs level V
|
||||
*/
|
||||
//#define OATPP_DISABLE_LOGV
|
||||
|
||||
/**
|
||||
* DISABLE logs level D
|
||||
*/
|
||||
//#define OATPP_DISABLE_LOGD
|
||||
|
||||
/**
|
||||
* DISABLE logs level E
|
||||
*/
|
||||
//#define OATPP_DISABLE_LOGE
|
||||
|
||||
|
||||
#endif /* oatpp_base_Config_hpp */
|
@ -25,6 +25,8 @@
|
||||
#ifndef oatpp_base_Environment_hpp
|
||||
#define oatpp_base_Environment_hpp
|
||||
|
||||
#include "./Config.hpp"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <atomic>
|
||||
#include <mutex>
|
||||
@ -32,7 +34,7 @@
|
||||
#include <unordered_map>
|
||||
#include <stdexcept>
|
||||
|
||||
#define OATPP_VERSION "0.18.6"
|
||||
#define OATPP_VERSION "0.18.9"
|
||||
|
||||
#define OATPP_ASSERT(EXP) \
|
||||
if(!(EXP)) { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user