/usr/include/nrn/hocassrt.h is in neuron-dev 7.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #ifndef hocassrt_h
#define hocassrt_h
#include <assert.h>
#undef assert
#undef _assert
# ifndef NDEBUG
# ifndef stderr
# include <stdio.h>
# endif
#if defined(__cplusplus)
extern "C" {
#endif
extern void hoc_execerror(const char*, const char*);
#if defined(__cplusplus)
}
#endif
#if defined(__STDC__)
# define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__,__LINE__);hoc_execerror(#ex, (char *)0);}}
#else
# define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__,__LINE__);hoc_execerror("ex", (char *)0);}}
#endif
# else
# define _assert(ex) ;
# define assert(ex) ;
# endif
#endif
|