add pic_errorf
This commit is contained in:
parent
224b08fb92
commit
737f916a8c
|
@ -120,6 +120,7 @@ pic_value pic_expand(pic_state *, pic_value);
|
||||||
void pic_abort(pic_state *, const char *);
|
void pic_abort(pic_state *, const char *);
|
||||||
void pic_raise(pic_state *, pic_value);
|
void pic_raise(pic_state *, pic_value);
|
||||||
void pic_error(pic_state *, const char *);
|
void pic_error(pic_state *, const char *);
|
||||||
|
void pic_errorf(pic_state *, const char *, size_t, ...);
|
||||||
void pic_warn(pic_state *, const char *);
|
void pic_warn(pic_state *, const char *);
|
||||||
|
|
||||||
void pic_debug(pic_state *, pic_value);
|
void pic_debug(pic_state *, pic_value);
|
||||||
|
|
|
@ -14,6 +14,12 @@ pic_error(pic_state *pic, const char *msg)
|
||||||
longjmp(*pic->jmp, 1);
|
longjmp(*pic->jmp, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
pic_errorf(pic_state *pic, const char *msg, size_t n, ...)
|
||||||
|
{
|
||||||
|
pic_error(pic, msg);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
pic_abort(pic_state *pic, const char *msg)
|
pic_abort(pic_state *pic, const char *msg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue