diff --git a/tinio/main.cpp b/tinio/main.cpp index f438a75..9ba945e 100644 --- a/tinio/main.cpp +++ b/tinio/main.cpp @@ -51,7 +51,13 @@ namespace errorEngine { return; } - int callExternFun(int ()) + int callExternFun(CY_RETURN_STATUS function()) { + int retval=function(); + if (retval != CY_SUCCESS) { + this.localErrorCreds.errorValue = retval; + + } + } } struct accessNums_t {