#ifndef _INCLUDE_ASSERT_H
#define _INCLUDE_ASSERT_H

/*
**  $VER: assert.h 1.02 (7.2.97)
**  StormC Release 3.0
**
**  '(C) Copyright 1995/96/97 Haage & Partner Computer GmbH'
**       All Rights Reserved
*/

#ifdef NDEBUG
#define assert(C)
#else
#ifdef __cplusplus
extern "C" {
#endif
void do_assert(char *, char *, char *, unsigned int);
#ifdef __cplusplus
}
#endif
#define assert(C) { if(!(C)) do_assert(#C, __FILE__, __FUNC__, __LINE__); }
#endif

/*----- support for stormamiga.lib -----*/

#ifdef STORMAMIGA
  #ifndef  ASSERT_STORMAMIGA_H
    #include <assert_stormamiga.h>
  #endif
#endif

#endif
