 |
PK_THREAD_ask_last_error |
|
PK_ERROR_code_t PK_THREAD_ask_last_error
(
--- returned arguments ---
PK_LOGICAL_t *const was_error, --- whether there was an error
PK_ERROR_sf_t *const error_sf --- description of the error
)
This function returns the standard form of the most recent PK error in the
calling thread.
If there have been no errors, or the last error has been cleared, 'was_error'
will be PK_LOGICAL_false, and the contents of 'error_sf' will have its
'function' field set to "PK_THREAD_ask_last_error", its 'code' field set to
PK_ERROR_no_errors and its 'severity' field set to PK_ERROR_none.
This function may only be called when the modeller is started.