Displaying 1 result from an estimated 1 matches for "assert_h_".
Did you mean:
assert_eq
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...the Free Software Foundation, Inc., 53 Temple Place Ste 330,
+ * Boston MA 02111-1307, USA; either version 2 of the License, or
+ * (at your option) any later version; incorporated herein by reference.
+ *
+ * ----------------------------------------------------------------------- */
+
+#ifndef ASSERT_H_
+#define ASSERT_H_
+
+extern int __attribute__((format(printf, 1, 2)))
+assert_printf(const char *fmt, ...) asm("printf");
+
+#define assert(cond) \
+ do { \
+ if (!(cond)) \
+ assert_printf("assert(%s) failed at %s line %d\n", #cond, \
+ __FILE__, __LINE__); \
+ }...