JBenda / inkcpp

Inkle Ink C++ Runtime with JSON>Binary Compiler
MIT License
70 stars 13 forks source link

Fix: support for compiled jsons ending with an container and not a DONE #56

Closed JBenda closed 1 year ago

JBenda commented 1 year ago

As shown by Jerry adds inky, an empty container at the end of the story. Which resulted in an unexpected EOF.

Now there is a check iff we leave the top-level container and are at the end of the story file, the story ends.

Ensures compatibility for different ink compilers (bonus: use link for inkcpp_test resource file should now also support Windows)