Adobe.com
Contents Suites Classes Class Index Member Index

AIAssertConfig.h

Go to the documentation of this file.
00001 /*************************************************************************
00002 *
00003 * ADOBE CONFIDENTIAL
00004 * 
00005 * Copyright 2017 Adobe
00006 * 
00007 * All Rights Reserved.
00008 *
00009 * NOTICE: Adobe permits you to use, modify, and distribute this file in
00010 * accordance with the terms of the Adobe license agreement accompanying
00011 * it. If you have received this file from a source other than Adobe,
00012 * then your use, modification, or distribution of it requires the prior
00013 * written permission of Adobe.
00014 *
00015 **************************************************************************/
00016 
00017 #pragma once
00018 
00019 // Asserts should be force enabled (i.e. for release build as well) until RC. 
00020 
00021 // Custom configuration
00022 #ifdef ILLUSTRATOR_MINIMAL
00023 #define AI_ASSERTS_ENABLED                      0
00024 #else
00025 
00026 #define AI_ASSERTS_ENABLED                      0 // <--Should be turned to 0 after RC
00027 
00028 // Automatic configuration
00029 #ifdef NDEBUG
00030 #define AI_ASSERT_CONTROL_DEBUG         0 // Release mode
00031 
00032 #else //NDEBUG
00033 
00034 //Make sure Asserts are always enabled in debug builds
00035 #if defined(AI_ASSERTS_ENABLED) && !AI_ASSERTS_ENABLED
00036 #undef AI_ASSERTS_ENABLED //It will be turned on below 
00037 #endif //defined(AI_ASSERTS_ENABLED) && !AI_ASSERTS_ENABLED
00038 
00039 #define AI_ASSERT_CONTROL_DEBUG         1 // Debug mode
00040 #endif // NDEBUG
00041 
00042 #ifndef AI_ASSERTS_ENABLED
00043 #define AI_ASSERTS_ENABLED              AI_ASSERT_CONTROL_DEBUG
00044 #endif // AI_ASSERT_FORCE_ENABLE
00045 
00046 #endif //ILLUSTRATOR_MINIMAL


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks