Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/src/pl/plpython/   (The Python Language ©)  Datei vom 11.4.2026 mit Größe 1 kB image not shown  

Quelle  plpy_elog.h

  Sprache: C
 

/*
 * src/pl/plpython/plpy_elog.h
 */


#ifndef PLPY_ELOG_H
#define PLPY_ELOG_H

#include "plpython.h"

/* global exception classes */
extern PyObject *PLy_exc_error;
extern PyObject *PLy_exc_fatal;
extern PyObject *PLy_exc_spi_error;

/*
 * PLy_elog()
 *
 * See comments at elog() about the compiler hinting.
 */

#ifdef HAVE__BUILTIN_CONSTANT_P
#define PLy_elog(elevel, ...) \
 do { \
  PLy_elog_impl(elevel, __VA_ARGS__); \
  if (__builtin_constant_p(elevel) && (elevel) >= ERROR) \
   pg_unreachable(); \
 } while(0)
#else       /* !HAVE__BUILTIN_CONSTANT_P */
#define PLy_elog(elevel, ...)  \
 do { \
  const int elevel_ = (elevel); \
  PLy_elog_impl(elevel_, __VA_ARGS__); \
  if (elevel_ >= ERROR) \
   pg_unreachable(); \
 } while(0)
#endif       /* HAVE__BUILTIN_CONSTANT_P */

extern PGDLLEXPORT void PLy_elog_impl(int elevel, const char *fmt,...) pg_attribute_printf(23);

extern PGDLLEXPORT void PLy_exception_set(PyObject *exc, const char *fmt,...) pg_attribute_printf(23);

extern PGDLLEXPORT void PLy_exception_set_plural(PyObject *exc, const char *fmt_singular, const char *fmt_plural,
             unsigned long n,...) pg_attribute_printf(25) pg_attribute_printf(35);

extern PGDLLEXPORT void PLy_exception_set_with_details(PyObject *excclass, ErrorData *edata);

#endif       /* PLPY_ELOG_H */

Messung V0.5 in Prozent
C=93 H=94 G=93

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.