added the main program to handle SIGINT

This commit is contained in:
hyunghwan.chung
2017-02-14 14:00:14 +00:00
parent f89d809cdc
commit bc5ab97ccf
5 changed files with 22 additions and 8 deletions

View File

@ -1374,6 +1374,7 @@ static MOO_INLINE moo_pfrc_t pf_basic_new (moo_t* moo, moo_ooi_t nargs)
}
}
if (MOO_OOP_IS_SMOOI(((moo_oop_class_t)_class)->trsize))
{
obj = moo_instantiatewithtrailer (moo, _class, size, MOO_NULL, MOO_OOP_TO_SMOOI(((moo_oop_class_t)_class)->trsize));
@ -4307,7 +4308,7 @@ oops:
return -1;
}
int moo_abort (moo_t* moo)
void moo_abort (moo_t* moo)
{
moo->abort_req = 1;
}