Branch: Tag:

2008-10-04

2008-10-04 17:17:14 by Martin Stjernholm <mast@lysator.liu.se>

Broke up va_error to be able to create an error without throwing it.

Rev: src/error.c:1.165
Rev: src/pike_error.h:1.49

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_error.h,v 1.48 2008/05/30 10:54:12 mast Exp $ + || $Id: pike_error.h,v 1.49 2008/10/04 17:17:14 mast Exp $   */      #ifndef PIKE_ERROR_H
248:   PMOD_EXPORT void push_error(const char *description);   PMOD_EXPORT DECLSPEC(noreturn) void low_error(const char *buf) ATTRIBUTE((noreturn));   PMOD_EXPORT void Pike_vsnprintf(char *str, size_t size, const char *fmt, va_list ap); - void DECLSPEC(noreturn) va_error(const char *fmt, va_list args) ATTRIBUTE((noreturn)); + PMOD_EXPORT void va_make_error (const char *fmt, va_list args); + PMOD_EXPORT void DECLSPEC(noreturn) va_error(const char *fmt, va_list args) ATTRIBUTE((noreturn)); + PMOD_EXPORT void make_error (const char *fmt, ...); + PMOD_EXPORT DECLSPEC(noreturn) void Pike_error(const char *fmt,...) ATTRIBUTE((noreturn));   PMOD_EXPORT DECLSPEC(noreturn) void new_error(const char *name, const char *text, struct svalue *oldsp,    INT32 args, const char *file, int line) ATTRIBUTE((noreturn));   PMOD_EXPORT void exit_on_error(const void *msg);   PMOD_EXPORT void fatal_on_error(const void *msg); - PMOD_EXPORT DECLSPEC(noreturn) void Pike_error(const char *fmt,...) ATTRIBUTE((noreturn)); +    PMOD_EXPORT DECLSPEC(noreturn) void debug_fatal(const char *fmt, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT DECLSPEC(noreturn) void generic_error_va(    struct object *o, const char *func, const struct svalue *base_sp, int args,