]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
Implemented _assert
authorJoel Holdsworth <redacted>
Sat, 18 Feb 2012 09:29:34 +0000 (09:29 +0000)
committerUwe Hermann <redacted>
Wed, 22 Feb 2012 21:58:36 +0000 (22:58 +0100)
debug.c

diff --git a/debug.c b/debug.c
index 8dab8c707951cd1d777d3557f64c1947759ed3ba..11807589dc794b29bb450be25357d8ca126aeb8a 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -51,4 +51,10 @@ void debugf(const char *format, ...) {
        EP6BCL = LSB(count);
 }
 
+void _assert(char *expr, const char *filename, unsigned int linenumber) {
+       debugf("Assert(%s) failed at line %u in file %s.\n",
+               expr, linenumber, filename);
+       while(1);
+}
+
 #endif