Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
/* $XConsortium: myassertP.h /main/4 1995/10/26 15:14:54 rswiston $ */
/************************************<+>*************************************
****************************************************************************
**
** File: myassertP.h
**
** Project: DT
**
** Description: Private include file for the Action Library.
**
**
** (c) Copyright 1993 by Hewlett-Packard Company
**
**
**
****************************************************************************
************************************<+>*************************************/
#ifndef MY_ASSERT_INCLUDED
# define MY_ASSERT_INCLUDED
# ifndef NDEBUG
# if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
/* ANSI Version */
# define myassert(EX) \
((EX)? 1 : (fprintf(stderr,"STDC Assertion failed: \""#EX"\"\n\tFile: %s\n\tLine: %d\n",__FILE__,__LINE__),0))
# else
/* NON-ANSI C */
# define myassert(EX) \
((EX)? 1 : (fprintf(stderr,"NOSTDC Assertion failed: \"EX\"\n\tFile: %s\n\tLine: %d\n",__FILE__,__LINE__),0))
# endif /* STD_C */
# else
# define myassert(EX) (1)
# endif
#endif /* MY_ASSERT_INCLUDED */