edje now alerts the user to its failure when running recursive embryo programs

This commit is contained in:
Mike Blumenkrantz 2014-04-21 10:04:31 -04:00
parent ab4ab7e73a
commit cefebd4921
1 changed files with 2 additions and 0 deletions

View File

@ -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 */
/* like 0.03 - 0.05 seconds or even more */
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);
if (ret == EMBRYO_PROGRAM_FAIL)
{