Files
sibo-playground/code/SIBOSDK/include/p_assert.h
T
2026-07-06 18:01:36 +01:00

28 lines
591 B
C

/* HEADER - P_ASSERT.H
Copyright (C) Psion PLC 1991-92
VER DATE BY DESCRIPTION
===== ======== === ===========
1.00F 26/04/90 NSM First relase
1.10F 07/07/92 NSM Second release
1.11F 31/08/23 AB #ifndef fix
*/
#ifndef P_ASSERT_H
#define P_ASSERT_H
#include <stdepoc.h>
#ifdef ASSERTIONS
#ifdef __cplusplus
extern "C" {
#endif
extern void p_assert(char *pAssert,char *pFile,int lineNo);
#ifdef __cplusplus
}
#endif
#define __ASSERT(p) ((p) ? ((void)0) : p_assert(#p,__FILE__,__LINE__))
#else
#define __ASSERT(ignore) ((void)0)
#endif
#endif // P_ASSERT_H