/*******************************************************************************
+
+  LEDA 7.2.3  
+
+
+  assert.h
+
+
+  Copyright (c) 1995-2026
+  by Algorithmic Solutions Software GmbH
+  All rights reserved.
+ 
*******************************************************************************/


#ifndef LEDA_ASSERT_H
#define LEDA_ASSERT_H

#if !defined(LEDA_ROOT_INCL_ID)
#define LEDA_ROOT_INCL_ID 723188
#include <LEDA/internal/PREAMBLE.h>
#endif

#include <LEDA/system/basic.h>


extern __exportF 
int assert_error(const char* cond, const char* fname, int line);


#if defined(assert)
#undef assert
#endif

#ifdef	NDEBUG

#define	assert(cond) ((void)0)

#else

#define assert(cond) (void)((cond) || assert_error(#cond,__FILE__,__LINE__))

#endif

#if LEDA_ROOT_INCL_ID == 723188
#undef LEDA_ROOT_INCL_ID
#include <LEDA/internal/POSTAMBLE.h>
#endif


#endif
