mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-22 08:52:20 +08:00
更新并适配ZLToolKit
This commit is contained in:
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user