inline pic_error definition

This commit is contained in:
Yuichi Nishiwaki 2014-03-24 14:57:10 +09:00
parent bb7e35ca0e
commit 0fcd1a3e10
2 changed files with 6 additions and 7 deletions

View File

@ -180,10 +180,15 @@ void pic_import(pic_state *, pic_value);
void pic_export(pic_state *, pic_sym);
noreturn void pic_abort(pic_state *, const char *);
noreturn void pic_error(pic_state *, const char *); /* obsoleted */
noreturn void pic_errorf(pic_state *, const char *, ...);
void pic_warn(pic_state *, const char *);
/* obsoleted */
noreturn static inline void pic_error(pic_state *pic, const char *msg)
{
pic_errorf(pic, msg);
}
const char *pic_errmsg(pic_state *);
pic_value pic_write(pic_state *, pic_value); /* returns given obj */

View File

@ -58,12 +58,6 @@ pic_errmsg(pic_state *pic)
return pic_str_cstr(pic->err->msg);
}
void
pic_error(pic_state *pic, const char *msg)
{
pic_errorf(pic, msg);
}
void
pic_errorf(pic_state *pic, const char *fmt, ...)
{