|
From: strk <st...@ke...> - 2007-02-08 15:32:00
|
Some invalid calls in Ming are using SWF_assert. What I found (but there are more) is passing delta args for shape lineTo which needs more then 17 bits to be encoded. This kind of error is a programming one, external to ming. I think using 'assertions' for these kind of error is wrong, rather we should instruct the developer about the problem giving as much details as possible. On the other, Ming internal problems should be handled with assertions, and the standard 'assert.h' is much better then the current SWF_assert. Simply calling SWF_assert currently only results in an "failed assertion" printed on stderr and an exit code != 0, which is of no much help, even with a debugger. A solution could be adding a second argument containing a message, but using a macro for user input checking seems more appropriate. Comments ? --strk; () ASCII Ribbon Campaign /\ Keep it simple! |