Added return value check.
Adding JSBPRECONDITION2 to check return value.
Merge pull request #1 from funkaster/master

Updated with upstream.
Merge remote-tracking branch 'origin/master'
Merge pull request #24 from dumganhar/check-return

Some Improvements for cxx-generator.