summaryrefslogtreecommitdiffstats
path: root/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/ASSERT.H
diff options
context:
space:
mode:
authorSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
committerSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
commit33613a85afc4b1481367fbe92a17ee59c240250b (patch)
tree670b842326116b376b505ec2263878912fca97e2 /Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/ASSERT.H
downloadStudium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz
Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2
add new repoHEADmaster
Diffstat (limited to 'Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/ASSERT.H')
-rw-r--r--Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/ASSERT.H46
1 files changed, 46 insertions, 0 deletions
diff --git a/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/ASSERT.H b/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/ASSERT.H
new file mode 100644
index 0000000..5a52ca3
--- /dev/null
+++ b/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/ASSERT.H
@@ -0,0 +1,46 @@
+#pragma force_top_level
+
+/* assert.h: ANSI 'C' (X3J11 Oct 88) library header section 4.2 */
+/* Copyright (C) Codemist Ltd., 1988-1993 */
+/* Copyright (C) Advanced Risc Machines Ltd., 1991-1993 */
+/* version 0.04 */
+
+
+/*
+ * The assert macro puts diagnostics into programs. When it is executed,
+ * if its argument expression is false, it writes information about the
+ * call that failed (including the text of the argument, the name of the
+ * source file, and the source line number - the latter are respectively
+ * the values of the preprocessing macros __FILE__ and __LINE__) on the
+ * standard error stream. It then calls the abort function.
+ * If its argument expression is true, the assert macro returns no value.
+ */
+
+/*
+ * Note that <assert.h> may be included more that once in a program with
+ * different setting of NDEBUG. Hence the slightly unusual first-time
+ * only flag.
+ */
+
+#ifndef __assert_h
+# define __assert_h
+# ifdef __cplusplus
+ extern "C" void __assert(char *, char *, int);
+# else
+ extern void __assert(char *, char *, int);
+# endif
+#else
+# undef assert
+#endif
+
+#ifdef NDEBUG
+# define assert(ignore) ((void)0)
+#else
+# ifdef __STDC__
+# define assert(e) ((e) ? (void)0 : __assert(#e, __FILE__, __LINE__))
+# else
+# define assert(e) ((e) ? (void)0 : __assert("e", __FILE__, __LINE__))
+# endif
+#endif
+
+/* end of assert.h */