error_new -> make_error
This commit is contained in:
parent
a99fb41c63
commit
b5e429e3e2
4
error.c
4
error.c
|
@ -72,7 +72,7 @@ pic_pop_try(pic_state *pic)
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct pic_error *
|
static struct pic_error *
|
||||||
error_new(pic_state *pic, short type, pic_str *msg, pic_value irrs)
|
make_error(pic_state *pic, short type, pic_str *msg, pic_value irrs)
|
||||||
{
|
{
|
||||||
struct pic_error *e;
|
struct pic_error *e;
|
||||||
pic_str *stack;
|
pic_str *stack;
|
||||||
|
@ -109,7 +109,7 @@ pic_throw(pic_state *pic, short type, const char *msg, pic_value irrs)
|
||||||
{
|
{
|
||||||
struct pic_error *e;
|
struct pic_error *e;
|
||||||
|
|
||||||
e = error_new(pic, type, pic_str_new_cstr(pic, msg), irrs);
|
e = make_error(pic, type, pic_str_new_cstr(pic, msg), irrs);
|
||||||
|
|
||||||
pic_throw_error(pic, e);
|
pic_throw_error(pic, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue