#include <assert.h>
Definition at line 27 of file assert.h.
◆ DynamicAssertionHelper()
dart::DynamicAssertionHelper::DynamicAssertionHelper |
( |
const char * |
file, |
|
|
int |
line |
|
) |
| |
|
inline |
◆ DISALLOW_IMPLICIT_CONSTRUCTORS()
◆ Print()
void dart::DynamicAssertionHelper::Print |
( |
const char * |
format, |
|
|
va_list |
arguments, |
|
|
bool |
will_abort = false |
|
) |
| const |
|
protected |
Definition at line 19 of file assert.cc.
21 {
22
23 const intptr_t file_len = strlen(
file_);
24 const intptr_t file_offset = (file_len > (1 *
KB)) ? file_len - (1 *
KB) : 0;
26
27
30 intptr_t file_and_line_length =
32
33
34 vsnprintf(
buffer + file_and_line_length,
35 sizeof(
buffer) - file_and_line_length,
format, arguments);
36
37
39#if defined(DART_HOST_OS_ANDROID)
40 if (will_abort && (&android_set_abort_message != nullptr)) {
41 android_set_abort_message(
buffer);
42 }
43#endif
44}
static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
static const uint8_t buffer[]
uint32_t uint32_t * format
#define MSAN_UNPOISON(ptr, len)
◆ file_
const char* const dart::DynamicAssertionHelper::file_ |
|
protected |
◆ line_
const int dart::DynamicAssertionHelper::line_ |
|
protected |
The documentation for this class was generated from the following files:
- third_party/dart-lang/sdk/runtime/platform/assert.h
- third_party/dart-lang/sdk/runtime/platform/assert.cc