forked from enlightenment/efl
edje_cc_out: Exit instead of segfault on OpenBSD.
Until the cause of these issues can be found exit and print error messages to console. edje_cc is currently not reliable on OpenBSD. Until then anyone wanting to use EFL on this platform will need pre-compiled .edj files. Differential Revision: https://phab.enlightenment.org/D9077
This commit is contained in:
parent
ad78f2ccf4
commit
6818565e9b
|
@ -752,6 +752,12 @@ check_program(Edje_Part_Collection *pc, Edje_Program *ep, Eet_File *ef)
|
|||
{
|
||||
Edje_Part *part;
|
||||
|
||||
if (et->id >= (int) pc->parts_count)
|
||||
{
|
||||
ERR("Target id '%d' greater than possible index '%d'.", et->id, (int) pc->parts_count - 1);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
part = pc->parts[et->id];
|
||||
/* verify existence of description in part */
|
||||
if (ep->action == EDJE_ACTION_TYPE_STATE_SET)
|
||||
|
|
Loading…
Reference in New Issue