File: assert.patch

package info (click to toggle)
kbuild 1%3A0.1.9998svn3686%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,712 kB
  • sloc: ansic: 344,267; sh: 30,227; perl: 4,570; cpp: 4,566; sed: 1,495; xml: 1,380; makefile: 1,320; asm: 800; yacc: 463; lex: 172; awk: 71; lisp: 26
file content (18 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (3)
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