add pic_errorf

This commit is contained in:
Yuichi Nishiwaki 2013-11-17 17:23:13 +09:00
parent 224b08fb92
commit 737f916a8c
2 changed files with 7 additions and 0 deletions

View File

@ -120,6 +120,7 @@ pic_value pic_expand(pic_state *, pic_value);
void pic_abort(pic_state *, const char *);
void pic_raise(pic_state *, pic_value);
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_debug(pic_state *, pic_value);

View File

@ -14,6 +14,12 @@ pic_error(pic_state *pic, const char *msg)
longjmp(*pic->jmp, 1);
}
void
pic_errorf(pic_state *pic, const char *msg, size_t n, ...)
{
pic_error(pic, msg);
}
void
pic_abort(pic_state *pic, const char *msg)
{