configurable throw function

This commit is contained in:
orignal 2020-05-05 11:13:59 -04:00
parent dbe1e3f577
commit d7d70b707f
3 changed files with 20 additions and 11 deletions

View file

@ -236,5 +236,11 @@ namespace log {
Log & Logger() {
return logger;
}
static ThrowFunction g_ThrowFunction;
ThrowFunction GetThrowFunction () { return g_ThrowFunction; }
void SetThrowFunction (ThrowFunction f) { g_ThrowFunction = f; }
} // log
} // i2p