Add initalize _wassert support.
Change-Id: I8922867ec77c975cdb235276fffc3c6272253a11
이 커밋은 다음에 포함됨:
1 부모
aec1c87f34
커밋
4ac8346383
1 파일이 변경됨
+8
@@ -1223,6 +1223,13 @@ void abort() {
|
||||
// size of the calling function. Additionally, the weak attribute
|
||||
// allows the function to exist as a global although its definition is
|
||||
// included in every compilation unit.
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
extern "C" __device__ __attribute__((noinline)) __attribute__((weak))
|
||||
void _wassert(const wchar_t *_msg, const wchar_t *_file, unsigned _line) {
|
||||
// FIXME: Need `wchar_t` support to generate assertion message.
|
||||
__builtin_trap();
|
||||
}
|
||||
#else /* defined(_WIN32) || defined(_WIN64) */
|
||||
extern "C" __device__ __attribute__((noinline)) __attribute__((weak))
|
||||
void __assert_fail(const char * __assertion,
|
||||
const char *__file,
|
||||
@@ -1244,6 +1251,7 @@ void __assertfail(const char * __assertion,
|
||||
// ignore all the args for now.
|
||||
__builtin_trap();
|
||||
}
|
||||
#endif /* defined(_WIN32) || defined(_WIN64) */
|
||||
|
||||
__device__
|
||||
inline
|
||||
|
||||
새 이슈에서 참조
사용자 차단