inline pic_error definition
This commit is contained in:
parent
bb7e35ca0e
commit
0fcd1a3e10
|
@ -180,10 +180,15 @@ void pic_import(pic_state *, pic_value);
|
||||||
void pic_export(pic_state *, pic_sym);
|
void pic_export(pic_state *, pic_sym);
|
||||||
|
|
||||||
noreturn void pic_abort(pic_state *, const char *);
|
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 *, ...);
|
noreturn void pic_errorf(pic_state *, const char *, ...);
|
||||||
void pic_warn(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 *);
|
const char *pic_errmsg(pic_state *);
|
||||||
|
|
||||||
pic_value pic_write(pic_state *, pic_value); /* returns given obj */
|
pic_value pic_write(pic_state *, pic_value); /* returns given obj */
|
||||||
|
|
|
@ -58,12 +58,6 @@ pic_errmsg(pic_state *pic)
|
||||||
return pic_str_cstr(pic->err->msg);
|
return pic_str_cstr(pic->err->msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
pic_error(pic_state *pic, const char *msg)
|
|
||||||
{
|
|
||||||
pic_errorf(pic, msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
pic_errorf(pic_state *pic, const char *fmt, ...)
|
pic_errorf(pic_state *pic, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue