Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/tools/include/asm/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  bug.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _TOOLS_ASM_BUG_H
#define _TOOLS_ASM_BUG_H

#include <linux/compiler.h>
#include <stdio.h>

#define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0)

#define WARN(condition, format...) ({  \
 int __ret_warn_on = !!(condition); \
 if (unlikely(__ret_warn_on))  \
  __WARN_printf(format);  \
 unlikely(__ret_warn_on);  \
})

#define WARN_ON(condition) ({     \
 int __ret_warn_on = !!(condition);   \
 if (unlikely(__ret_warn_on))    \
  __WARN_printf("assertion failed at %s:%d\n", \
    __FILE__, __LINE__);  \
 unlikely(__ret_warn_on);    \
})

#define WARN_ON_ONCE(condition) ({   \
 static int __warned;    \
 int __ret_warn_once = !!(condition);  \
       \
 if (unlikely(__ret_warn_once && !__warned)) { \
  __warned = true;   \
  WARN_ON(1);    \
 }      \
 unlikely(__ret_warn_once);   \
})

#define WARN_ONCE(condition, format...) ({ \
 static int __warned;   \
 int __ret_warn_once = !!(condition); \
      \
 if (unlikely(__ret_warn_once))  \
  if (WARN(!__warned, format))  \
   __warned = 1;  \
 unlikely(__ret_warn_once);  \
})

#endif /* _TOOLS_ASM_BUG_H */

Messung V0.5
C=96 H=75 G=86

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.