summaryrefslogtreecommitdiff
path: root/src/pal/src/include/pal/dbgmsg.h
diff options
context:
space:
mode:
authorKonstantin Baladurin <k.baladurin@samsung.com>2019-07-05 19:36:28 +0300
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 15:29:41 +0300
commitadf89f8ad08eaf477b768d76d3902d123fd916e2 (patch)
treea0551deaf0b3d1f996b40366ef72ea7b11d8207b /src/pal/src/include/pal/dbgmsg.h
parentc6b150319647712f3bd1340fcc051336fbabb424 (diff)
downloadcoreclr-adf89f8ad08eaf477b768d76d3902d123fd916e2.tar.gz
coreclr-adf89f8ad08eaf477b768d76d3902d123fd916e2.tar.bz2
coreclr-adf89f8ad08eaf477b768d76d3902d123fd916e2.zip
[Tizen] Add coreclr_preload_assembly to CoreCLR host API
Diffstat (limited to 'src/pal/src/include/pal/dbgmsg.h')
-rw-r--r--src/pal/src/include/pal/dbgmsg.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/pal/src/include/pal/dbgmsg.h b/src/pal/src/include/pal/dbgmsg.h
index d7219b2bd4..58ab25b92d 100644
--- a/src/pal/src/include/pal/dbgmsg.h
+++ b/src/pal/src/include/pal/dbgmsg.h
@@ -363,14 +363,17 @@ inline void ANALYZER_NORETURN AssertBreak()
}
}
-#define ASSERT(...) \
-{ \
- __ASSERT_ENTER(); \
- if (output_file && dbg_master_switch) \
- { \
- DBG_printf(defdbgchan,DLI_ASSERT,TRUE,__FUNCTION__,__FILE__,__LINE__,__VA_ARGS__); \
- } \
- AssertBreak(); \
+#define ASSERT(...) \
+{ \
+ if (PALIsInitialized()) \
+ { \
+ __ASSERT_ENTER(); \
+ if (output_file && dbg_master_switch) \
+ { \
+ DBG_printf(defdbgchan,DLI_ASSERT,TRUE,__FUNCTION__,__FILE__,__LINE__,__VA_ARGS__); \
+ } \
+ AssertBreak(); \
+ } \
}
#define _ASSERT(expr) do { if (!(expr)) { ASSERT(""); } } while(0)