From 32ffa1d0df3340b415e259c071ff8011243a32c3 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Thu, 16 Aug 2001 00:59:12 +0200 Subject: [PATCH] Added an _sprintf in the generic error object. Added a compilation error object. Rev: src/errors.h:1.17 --- src/errors.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/errors.h b/src/errors.h index af3533e572..7909e5a988 100644 --- a/src/errors.h +++ b/src/errors.h @@ -74,6 +74,7 @@ DECLARE_ERROR(generic, EMPTY , ERR_FUNC("`[]",f_error_index,tFunc(tString,tMixed),0) ERR_FUNC("describe",f_error_describe,tFunc(tVoid,tString),0) ERR_FUNC("backtrace",f_error_backtrace,tFunc(tVoid,tArr(tMixed)),0) + ERR_FUNC("_sprintf",f_error__sprintf,tFunc(tNone,tString),0) ) #define GENERIC_ERROR_THIS ((struct generic_error_struct *)CURRENT_STORAGE) @@ -109,6 +110,8 @@ DECLARE_ERROR(permission, DECLARE_ERROR(cpp, ERR_INHERIT(generic), EMPTY) +DECLARE_ERROR(compilation, ERR_INHERIT(generic), EMPTY) + #undef DECLARE_ERROR #undef ERR_INHERIT #undef ERR_VAR -- GitLab