mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
Initial commit
This commit is contained in:
commit
77cdaaf97e
827 changed files with 418745 additions and 0 deletions
25
vendor/librw/src/rwerror.h
vendored
Normal file
25
vendor/librw/src/rwerror.h
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
namespace rw {
|
||||
|
||||
struct Error
|
||||
{
|
||||
uint32 plugin;
|
||||
uint32 code;
|
||||
};
|
||||
|
||||
void setError(Error *e);
|
||||
Error *getError(Error *e);
|
||||
|
||||
#define _ERRORCODE(code, ...) code
|
||||
char *dbgsprint(uint32 code, ...);
|
||||
|
||||
/* ecode is supposed to be in format "(errorcode, printf-arguments..)" */
|
||||
#define RWERROR(ecode) do{ \
|
||||
rw::Error _e; \
|
||||
_e.plugin = PLUGIN_ID; \
|
||||
_e.code = _ERRORCODE ecode; \
|
||||
fprintf(stderr, "%s:%d: ", __FILE__, __LINE__); \
|
||||
fprintf(stderr, "%s\n", rw::dbgsprint ecode); \
|
||||
rw::setError(&_e); \
|
||||
}while(0)
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue