PK_ERROR_ask_last   

PK_ERROR_code_t      PK_ERROR_ask_last
(
--- 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.


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_ERROR_ask_last", its 'code' field set to
PK_ERROR_no_errors and its 'severity' field set to PK_ERROR_none.

This function may be called at any time.

Note that this function returns the most recent error, irrespective of
which thread it occurred in. If multiple application threads are used to
call Parasolid, PK_THREAD_ask_last_error will be more useful, since that
returns the most recent error from the calling thread.