note description: "[ C error interop class for determining a error state of external C calls. Note: This class is designed to be inherited. All calls to C externals supporting setting of the global error state should be followed by a call to `determin_last_error'. `last_operation_successful' can can then be used to determin if last C external call was completely successful. ]" legal : "See notice at end of class." status : "See notice at end of class."; author : "Paul Bates (paul.a.bates@gmail.com)" date : "$Date$" revision: "$Revision$" deferred class C_OPERABLE feature -- Status report is_successful: BOOLEAN -- Indicates if the last C call operation was successful. do Result := last_error_code = {C_OPERABLE_EXTERNALS}.c_error_success end feature -- Access last_error_code: INTEGER -- Last error code set by calling `determine_last_error'. feature -- Basic operations determine_last_error -- Determines the last error of an external C call. do last_error_code := {C_OPERABLE_EXTERNALS}.c_get_last_error ensure last_error_code_set: last_error_code = {C_OPERABLE_EXTERNALS}.c_get_last_error end end