WONKY



LOG | FILES | OVERVIEW


#include <wobler_declarations.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)
{
	if(!wonky_assertion)
	{
		printf("[ ASSERT ]\t");
		fprintf(wobler_log,"[ ASSERT ]\t");
		print_names();
		printf("\n\tAssertion failed %s - %s:%d in %s\n",what_is_asserted,file_of_assertion,line,function_name,date);
		fprintf(wobler_log,"\n\tAssertion failed %s - %s:%d in %s [ %s ]\n",what_is_asserted,file_of_assertion,line,function_name,date);
		longjmp(wobler_mark,1);
	}

}