blob: 9376b6d412f4631e83576ba4697d7ca651248475 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Description: Use assert ehen kHlpAssertBreakpoint is not available
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Last-Update: 2020-11-10
Index: kbuild/src/lib/kStuff/include/k/kHlpAssert.h
===================================================================
--- kbuild.orig/src/lib/kStuff/include/k/kHlpAssert.h
+++ kbuild/src/lib/kStuff/include/k/kHlpAssert.h
@@ -60,7 +60,8 @@
#elif defined(__GNUC__) && (K_ARCH == K_ARCH_SPARC_64)
# define kHlpAssertBreakpoint() do { __asm__ __volatile__ ("illtrap 0"); } while (0) /*??*/
#else
-# error "Port Me"
+#include <assert.h>
+# define kHlpAssertBreakpoint(cond) assert(cond)
#endif
/** @def K_FUNCTION
|