Go to the documentation of this file.
7 typedef uint8_t BYTE, byte;
8 typedef uint8_t * PBYTE;
10 typedef struct myPoint
16 #include <android/log.h>
24 struct LocalAssert { \
26 LocalAssert(int line=__LINE__) : mLine(line) {} \
27 LocalAssert(bool isOK, const tchar* message=_T("")) { \
29 tstringstream buffer; \
30 buffer << _T("ERROR!! Assert failed on line ") << LocalAssert().mLine << _T(" in file '") << __FILE__ << std::endl << _T("Message: \"") << message << _T("\"\n"); \
31 __android_log_assert(_T("ASSERT"), ANDROID_LOG_TAG, "%s", buffer.str().c_str()); \
34 } myAsserter = LocalAssert
38 struct LocalAssert { \
40 LocalAssert(int line=__LINE__) : mLine(line) {} \
41 LocalAssert(bool isOK, const char* message="") { \
43 std::stringstream buffer; \
44 buffer << "ERROR!! Assert failed on line " << LocalAssert().mLine << " in file '" << __FILE__ << std::endl << "Message: \"" << message << "\"\n"; \
45 __android_log_assert("ASSERT", ANDROID_LOG_TAG, "%s", buffer.str().c_str()); \
48 } myAsserter = LocalAssert
53 NoAssert(bool isOK, const tchar* message=_T("")) {} \
54 } myAsserter = NoAssert
58 NoAssert(bool isOK, const tchar* message=_T("")) {} \
59 } myAsserter = NoAssert