forked from organicmaps/organicmaps
[android] Immediately stop on assert failure.
This commit is contained in:
parent
16dfcfa820
commit
2f68162357
1 changed files with 9 additions and 0 deletions
|
@ -1,9 +1,12 @@
|
|||
#include "logging.hpp"
|
||||
|
||||
#include <android/log.h>
|
||||
#include <cassert>
|
||||
|
||||
#include "../../../../../base/assert.hpp"
|
||||
#include "../../../../../base/logging.hpp"
|
||||
#include "../../../../../base/exception.hpp"
|
||||
|
||||
|
||||
namespace jni
|
||||
{
|
||||
|
@ -30,6 +33,12 @@ void AndroidLogMessage(LogLevel l, SrcPoint const & src, string const & s)
|
|||
void AndroidAssertMessage(SrcPoint const & src, string const & s)
|
||||
{
|
||||
AndroidLogMessage(LERROR, src, s);
|
||||
|
||||
#ifdef DEBUG
|
||||
assert(false);
|
||||
#else
|
||||
MYTHROW(RootException, (s));
|
||||
#endif
|
||||
}
|
||||
|
||||
void InitSystemLog()
|
||||
|
|
Loading…
Add table
Reference in a new issue