Files
RomWBW/Source/Images/d_hitechc/u1/ASSERT.H
Wayne Warthen 0d0360b277 Enhanced Hi-Tech C Compiler Files, Issue #521
Added the enhanced Hi-Tech C Compiler components from @Laci1953 to user area 1 of the Hi-Tech Compiler disk images.

Co-Authored-By: ladislau szilagyi <87603175+Laci1953@users.noreply.github.com>
2025-05-31 15:11:38 -07:00

23 lines
640 B
C
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef _HTC_ASSERT_H
#define _HTC_ASSERT_H
/*
* Assertion - use liberally for debugging. Defining NDEBUG
* turns assertions off.
* assert(exp) where exp is non-zero does nothing, while
* assert(exp) where exp evaluates to zero aborts the program
* with a message like
*
* Assertion failed: prog.c line 123: "exp"
*
*/
#ifndef NDEBUG
extern void _fassert(int, char *, char *);
#define assert(exp) if(!(exp)) {_fassert(__LINE__, __FILE__, "exp");}
#else
#define assert(exp)
#endif
#endif