Skip to content
Snippets Groups Projects
Commit 32ffa1d0 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Added an _sprintf in the generic error object. Added a compilation error

object.

Rev: src/errors.h:1.17
parent cec4226b
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ DECLARE_ERROR(generic, EMPTY , ...@@ -74,6 +74,7 @@ DECLARE_ERROR(generic, EMPTY ,
ERR_FUNC("`[]",f_error_index,tFunc(tString,tMixed),0) ERR_FUNC("`[]",f_error_index,tFunc(tString,tMixed),0)
ERR_FUNC("describe",f_error_describe,tFunc(tVoid,tString),0) ERR_FUNC("describe",f_error_describe,tFunc(tVoid,tString),0)
ERR_FUNC("backtrace",f_error_backtrace,tFunc(tVoid,tArr(tMixed)),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) #define GENERIC_ERROR_THIS ((struct generic_error_struct *)CURRENT_STORAGE)
...@@ -109,6 +110,8 @@ DECLARE_ERROR(permission, ...@@ -109,6 +110,8 @@ DECLARE_ERROR(permission,
DECLARE_ERROR(cpp, ERR_INHERIT(generic), EMPTY) DECLARE_ERROR(cpp, ERR_INHERIT(generic), EMPTY)
DECLARE_ERROR(compilation, ERR_INHERIT(generic), EMPTY)
#undef DECLARE_ERROR #undef DECLARE_ERROR
#undef ERR_INHERIT #undef ERR_INHERIT
#undef ERR_VAR #undef ERR_VAR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment