adventuregamestudio/ags — pull request #44 by ivan-mogilko (2012-12-28 00:40:29+00:00)
Title: Script API

Exported engine functions now required to have one of two generic prototypes that accept an array of Script Value objects and return Script Value (of undefined type - if the engine function is not supposed to have return value).

Unfortunately, plugins cannot be fixed right away, because that would require changing plugin API, so that is left for "better future". Therefore plugin functions are still called unsafe way.

This change is quite serious too. I used descriptive macros for engine function calls to simplify and speed up coding, but could make some occasional mistakes. I found 3 so far, all three related to returning undefined value instead of Int.
So, this is something to consider before actually accepting this pull.