![]() |
|
|||
File indexing completed on 2025-02-21 09:30:07
0001 /* 0002 --------------------------------------------------------------------------- 0003 Open Asset Import Library (assimp) 0004 --------------------------------------------------------------------------- 0005 0006 Copyright (c) 2006-2024, assimp team 0007 0008 All rights reserved. 0009 0010 Redistribution and use of this software in source and binary forms, 0011 with or without modification, are permitted provided that the following 0012 conditions are met: 0013 0014 * Redistributions of source code must retain the above 0015 copyright notice, this list of conditions and the 0016 following disclaimer. 0017 0018 * Redistributions in binary form must reproduce the above 0019 copyright notice, this list of conditions and the 0020 following disclaimer in the documentation and/or other 0021 materials provided with the distribution. 0022 0023 * Neither the name of the assimp team, nor the names of its 0024 contributors may be used to endorse or promote products 0025 derived from this software without specific prior 0026 written permission of the assimp team. 0027 0028 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 0029 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 0030 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 0031 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 0032 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 0033 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 0034 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 0035 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 0036 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0037 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 0038 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0039 --------------------------------------------------------------------------- 0040 */ 0041 0042 /** @file ai_assert.h 0043 * @brief Declares the assimp-specific assertion handler. 0044 */ 0045 0046 #pragma once 0047 #ifndef AI_ASSERT_H_INC 0048 #define AI_ASSERT_H_INC 0049 0050 #include <assimp/defs.h> 0051 0052 #if defined(ASSIMP_BUILD_DEBUG) 0053 0054 namespace Assimp { 0055 0056 /// @brief Assert violation behavior can be customized: see AssertHandler.h. 0057 /// @param failedExpression The expression to validate. 0058 /// @param file The file location 0059 /// @param line The line number 0060 ASSIMP_API void aiAssertViolation(const char* failedExpression, const char* file, int line); 0061 0062 } 0063 #endif 0064 0065 // Define assertion resolinig 0066 #if defined(ASSIMP_BUILD_DEBUG) 0067 # define ai_assert(expression) (void)((!!(expression)) || (Assimp::aiAssertViolation(#expression, __FILE__, __LINE__), 0)) 0068 # define ai_assert_entry() ai_assert(false) 0069 #else 0070 # define ai_assert(expression) 0071 # define ai_assert_entry() 0072 #endif // ASSIMP_BUILD_DEBUG 0073 0074 #endif // AI_ASSERT_H_INC
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |