更新并适配ZLToolKit

This commit is contained in:
xia-chu
2024-08-04 20:46:05 +08:00
parent 47b8435d7c
commit da704ab2f1
5 changed files with 7 additions and 35 deletions

View File

@@ -9,7 +9,6 @@
*/
#include "macros.h"
#include "Util/util.h"
using namespace toolkit;
@@ -17,20 +16,6 @@ using namespace toolkit;
#include "ZLMVersion.h"
#endif
extern "C" {
void Assert_Throw(int failed, const char *exp, const char *func, const char *file, int line, const char *str) {
if (failed) {
_StrPrinter printer;
printer << "Assertion failed: (" << exp ;
if(str && *str){
printer << ", " << str;
}
printer << "), function " << func << ", file " << file << ", line " << line << ".";
throw mediakit::AssertFailedException(printer);
}
}
}
namespace mediakit {
/**