![]() |
![]() |
|
00001 /* ///////////////////////////////////////////////////////////////////////// 00002 * File: src/shwild_assert.h 00003 * 00004 * Purpose: Contract Programming enforcement definitions. 00005 * 00006 * Created: 8th February 2008 00007 * Updated: 8th February 2008 00008 * 00009 * Author: Matthew Wilson 00010 * 00011 * Home: http://www.shwild.org/ 00012 * 00013 * Copyright (c) 2008, Matthew Wilson 00014 * 00015 * Redistribution and use in source and binary forms, with or without 00016 * modification, are permitted provided that the following conditions are 00017 * met: 00018 * 00019 * - Redistributions of source code must retain the above copyright notice, 00020 * this list of conditions and the following disclaimer. 00021 * - Redistributions in binary form must reproduce the above copyright 00022 * notice, this list of conditions and the following disclaimer in the 00023 * documentation and/or other materials provided with the distribution. 00024 * - Neither the names of Matthew Wilson and Synesis Software nor the names 00025 * of any contributors may be used to endorse or promote products derived 00026 * from this software without specific prior written permission. 00027 * 00028 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 00029 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00030 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00031 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 00032 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00033 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00034 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00035 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00036 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00037 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00038 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00039 * 00040 * ////////////////////////////////////////////////////////////////////// */ 00041 00042 00043 #ifndef SHWILD_INCL_H_SHWILD_ASSERT 00044 #define SHWILD_INCL_H_SHWILD_ASSERT 00045 00046 /* ///////////////////////////////////////////////////////////////////////// 00047 * Includes 00048 */ 00049 00050 #include <shwild/shwild.h> 00051 #include <stlsoft/stlsoft.h> 00052 00053 /* ///////////////////////////////////////////////////////////////////////// 00054 * Macros 00055 */ 00056 00057 #define SHWILD_ASSERT(expr) STLSOFT_ASSERT(expr) 00058 00059 #define SHWILD_MESSAGE_ASSERT(msg, expr) STLSOFT_MESSAGE_ASSERT(msg, expr) 00060 00061 /* ////////////////////////////////////////////////////////////////////// */ 00062 00063 #endif /* SHWILD_INCL_H_SHWILD_ASSERT */ 00064 00065 /* ////////////////////////////////////////////////////////////////////// */
|
b64 Library documentation © Synesis Software Pty Ltd, 2004-2007 |