JBenda / inkcpp

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

Fallback for external functions #47

Closed JBenda closed 1 year ago

JBenda commented 2 years ago

Add fallback for external functions

based on: https://github.com/inkle/ink/blob/master/Documentation/RunningYourInk.md#fallbacks-for-external-functions

It is now possible to implement a dummy/error function for each external functions. It must have been the same name and same number of arguments and will be executed if the external function was not bind when needed. IF the external functions will get bind later, then it will be called the next time.

Introduces new flag: FALLBACK_FUNCTION to add a new execution dimension Introduce new value type: ex_fn_not_found to signal failed external

JBenda commented 1 year ago

Was merged with #49