Return to check_confuse.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / confuse / tests |
Initial revision
#ifndef _check_confuse_h_ #define _check_confuse_h_ #include "../src/confuse.h" #include <stdlib.h> #define fail_unless(test) \ do { if(!(test)) { \ fprintf(stderr, \ "----------------------------------------------\n" \ "%s:%d: test FAILED:\nFailed test: %s\n" \ "----------------------------------------------\n", \ __FILE__, __LINE__, #test); \ exit(1); \ } } while(0) #endif