mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine performance
This commit is contained in:
parent
54b6a9faa7
commit
36d06edab3
3 changed files with 10 additions and 1 deletions
|
@ -422,7 +422,7 @@ public:
|
|||
};
|
||||
|
||||
// Error helpers, should use these functions to new or wrap an error.
|
||||
#define srs_success SrsCplxError::success()
|
||||
#define srs_success 0 // SrsCplxError::success()
|
||||
#define srs_error_new(ret, fmt, ...) SrsCplxError::create(__FUNCTION__, __FILE__, __LINE__, ret, fmt, ##__VA_ARGS__)
|
||||
#define srs_error_wrap(err, fmt, ...) SrsCplxError::wrap(__FUNCTION__, __FILE__, __LINE__, err, fmt, ##__VA_ARGS__)
|
||||
#define srs_error_copy(err) SrsCplxError::copy(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue