WONKY



LOG | FILES | OVERVIEW


#ifndef WONKY_ASSERT_H
#define WONKY_ASSERT_H WONKY_ASSERT_H
#include <stdlib.h>
#include <stdio.h>

void wonky_assert_function(_Bool wonky_assertion,const char *what_is_asserted,const char *file_of_assertion,const char *function_name,int line,const char *date);


#ifdef NDEBUG

#	define wonky_assert(wonky_assertion) ((void)0)

#else /*ifndef NDEBUG*/

#	define wonky_assert(wonky_assertion) wonky_assert_function(wonky_assertion,#wonky_assertion,__FILE__,__func__,__LINE__,__DATE__)

#endif /*ifdef NDEBUG*/





#endif /*header guard*/