| 1 | #cxx . . $ `<file>/mednafen/error.h`/ifndef __MDFN_ERROR_H |
| 2 | #define __MDFN_ERROR_Hcxx . . $ `mednafen/error.h:2:9`! |
| 3 | |
| 4 | #include <errno.h> |
| 5 | #include <string.h> |
| 6 | #include <stdexcept> |
| 7 | |
| 8 | #ifdef __cpluspluscxx . . $ `<built-in>:471:9`! |
| 9 | |
| 10 | class ErrnoHoldercxx . . $ ErrnoHolder#; |
| 11 | class MDFN_Errorcxx . . $ MDFN_Error# : public stdcxx . . $ std/::exception |
| 12 | { |
| 13 | public: |
| 14 | |
| 15 | MDFN_Errorcxx . . $ MDFN_Error#MDFN_Error(ced63f7c635d850d).() throw(); |
| 16 | |
| 17 | MDFN_Errorcxx . . $ MDFN_Error#MDFN_Error(3021f9d48bee4f7).(int errno_code_new, const char *format, ...) throw(); |
| 18 | MDFN_Errorcxx . . $ MDFN_Error#MDFN_Error(1d024006da5d3327).(const ErrnoHoldercxx . . $ ErrnoHolder# &enh); |
| 19 | |
| 20 | ~cxx . . $ MDFN_Error#`~MDFN_Error`(ced63f7c635d850d).MDFN_Errorcxx . . $ MDFN_Error#() throw(); |
| 21 | |
| 22 | MDFN_Errorcxx . . $ MDFN_Error#MDFN_Error(1abb5669f35c92b1).(const MDFN_Errorcxx . . $ MDFN_Error# &ze_error) throw(); |
| 23 | MDFN_Errorcxx . . $ MDFN_Error# & operatorcxx . . $ MDFN_Error#`operator=`(5e177ef31629b4c5).=(const MDFN_Errorcxx . . $ MDFN_Error# &ze_error) throw(); |
| 24 | |
| 25 | virtual const char *whatcxx . . $ MDFN_Error#what(ba32b354807b2b81).(void) const throw(); |
| 26 | int GetErrnocxx . . $ MDFN_Error#GetErrno(ea6fe5115c70a13f).(void) const throw(); |
| 27 | |
| 28 | private: |
| 29 | |
| 30 | int errno_codecxx . . $ MDFN_Error#errno_code.; |
| 31 | char *error_messagecxx . . $ MDFN_Error#error_message.; |
| 32 | }; |
| 33 | |
| 34 | class ErrnoHoldercxx . . $ ErrnoHolder# |
| 35 | { |
| 36 | public: |
| 37 | |
| 38 | ErrnoHoldercxx . . $ ErrnoHolder#ErrnoHolder(49f6e7a06ebc5aa8).() |
| 39 | { |
| 40 | local_errnocxx . . $ ErrnoHolder#local_errno. = 0; |
| 41 | local_strerrorcxx . . $ ErrnoHolder#local_strerror.[0] = 0; |
| 42 | } |
| 43 | |
| 44 | ErrnoHoldercxx . . $ ErrnoHolder#ErrnoHolder(d4f767463ce0a6b3).(int the_errno) |
| 45 | { |
| 46 | SetErrnocxx . . $ ErrnoHolder#SetErrno(d4f767463ce0a6b3).(the_errno); |
| 47 | } |
| 48 | |
| 49 | inline int Errnocxx . . $ ErrnoHolder#Errno(455f465bc33b4cdf).(void) const |
| 50 | { |
| 51 | return(local_errnocxx . . $ ErrnoHolder#local_errno.); |
| 52 | } |
| 53 | |
| 54 | const char *StrErrorcxx . . $ ErrnoHolder#StrError(a9f41ea0e82d88cf).(void) const |
| 55 | { |
| 56 | return(local_strerrorcxx . . $ ErrnoHolder#local_strerror.); |
| 57 | } |
| 58 | |
| 59 | void operatorcxx . . $ ErrnoHolder#`operator=`(d4f767463ce0a6b3).=(int the_errno) |
| 60 | { |
| 61 | SetErrnocxx . . $ ErrnoHolder#SetErrno(d4f767463ce0a6b3).(the_errno); |
| 62 | } |
| 63 | |
| 64 | private: |
| 65 | |
| 66 | void SetErrnocxx . . $ ErrnoHolder#SetErrno(d4f767463ce0a6b3).(int the_errno); |
| 67 | |
| 68 | int local_errnocxx . . $ ErrnoHolder#local_errno.; |
| 69 | char local_strerrorcxx . . $ ErrnoHolder#local_strerror.[256]; |
| 70 | }; |
| 71 | |
| 72 | #endif |
| 73 | |
| 74 | #endif |