1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix build fail

This commit is contained in:
winlin 2020-08-18 19:35:35 +08:00
parent 17bef0402e
commit 307c644f18

View file

@ -67,7 +67,7 @@ extern srs_utime_t _srs_tmp_timeout;
// For errors, assert. // For errors, assert.
// @remark we directly delete the err, because we allow user to append message if fail. // @remark we directly delete the err, because we allow user to append message if fail.
#define HELPER_EXPECT_SUCCESS(x) \ #define HELPER_ASSERT_SUCCESS(x) \
if ((err = x) != srs_success) fprintf(stderr, "err %s", srs_error_desc(err).c_str()); \ if ((err = x) != srs_success) fprintf(stderr, "err %s", srs_error_desc(err).c_str()); \
if (err != srs_success) delete err; \ if (err != srs_success) delete err; \
ASSERT_TRUE(srs_success == err) ASSERT_TRUE(srs_success == err)