forked from enlightenment/efl
edje now alerts the user to its failure when running recursive embryo programs
This commit is contained in:
parent
ab4ab7e73a
commit
cefebd4921
|
@ -3871,6 +3871,8 @@ _edje_embryo_test_run(Edje *ed, const char *fname, const char *sig, const char *
|
||||||
/* will likely end up being much longer than 0.016 seconds - more */
|
/* will likely end up being much longer than 0.016 seconds - more */
|
||||||
/* like 0.03 - 0.05 seconds or even more */
|
/* like 0.03 - 0.05 seconds or even more */
|
||||||
embryo_program_max_cycle_run_set(ed->collection->script, 5000000);
|
embryo_program_max_cycle_run_set(ed->collection->script, 5000000);
|
||||||
|
if (embryo_program_recursion_get(ed->collection->script))
|
||||||
|
ERR("You are running Embryo->EDC->Embryo with script program '%s';\nBy the power of Grayskull, your previous Embryo stack is now broken!", fname);
|
||||||
ret = embryo_program_run(ed->collection->script, fn);
|
ret = embryo_program_run(ed->collection->script, fn);
|
||||||
if (ret == EMBRYO_PROGRAM_FAIL)
|
if (ret == EMBRYO_PROGRAM_FAIL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue