MHEG5
15.3.0
|
00001 /******************************************************************************* 00002 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org) 00003 * Copyright © 2009 Ocean Blue Software Ltd 00004 * 00005 * This file is part of a DTVKit Software Component 00006 * You are permitted to copy, modify or distribute this file subject to the terms 00007 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org 00008 * 00009 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 00010 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 00011 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. 00012 * 00013 * If you or your organisation is not a member of DTVKit then you have access 00014 * to this source code outside of the terms of the licence agreement 00015 * and you are expected to delete this and any associated files immediately. 00016 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org 00017 *******************************************************************************/ 00025 #ifndef _GLUE_ASSERT_H 00026 #define _GLUE_ASSERT_H 00027 00028 #ifdef DEBUG_ASSERT 00029 00030 #include "stb_debug.h" 00031 #undef assert 00032 #define assert(x) if (!(x)) STB_SPDebugAssertFail(__FILE__, __LINE__,#x); 00033 #define ASSERT(x) assert(x); 00034 00035 #elif defined(NDEBUG) || defined(__DIAB) 00036 00037 #undef assert 00038 #define assert(x) 00039 #define ASSERT(x) 00040 00041 #elif defined(_WIN32_WCE) 00042 00043 #include <winbase.h> 00044 #undef assert 00045 #define assert(x) 00046 #define ASSERT(x) 00047 00048 #else 00049 #include <assert.h> 00050 #define ASSERT(x) assert(x); 00051 00052 #endif 00053 00054 #define ASSERTL1(x) ASSERT(x) 00055 00056 #endif /*_GLUE_ASSERT_H*/