17 Dart_Handle __handle__ = H; \
18 if (Dart_IsError(__handle__)) { \
19 const char* message = Dart_GetError(__handle__); \
20 fprintf(stderr, "Check \"" #H "\" failed: %s", message); \
27 fprintf(stderr, "Assertion \"" #E "\" failed at %s:%d!\n", __FILE__, \
36#define FAIL(name, result) \
37 if (!is_dart_precompiled_runtime) { \
48#define FAIL_INVOKE_FIELD(name, result) \
49 if (!is_dart_precompiled_runtime) { \
50 FailInvokeField(name, result); \
57 ASSERT(strstr(
error,
"Entry-points do not allow invoking fields"));
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_Allocate(Dart_Handle type)
DART_EXPORT bool Dart_IsApiError(Dart_Handle handle)
struct _Dart_Handle * Dart_Handle
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_Invoke(Dart_Handle target, Dart_Handle name, int number_of_arguments, Dart_Handle *arguments)
DART_EXPORT bool Dart_IsPrecompiledRuntime(void)
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_New(Dart_Handle type, Dart_Handle constructor_name, int number_of_arguments, Dart_Handle *arguments)
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_SetField(Dart_Handle container, Dart_Handle name, Dart_Handle value)
DART_EXPORT bool Dart_IsUnhandledExceptionError(Dart_Handle handle)
DART_EXPORT Dart_Handle Dart_Null(void)
DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, Dart_Handle class_name)
DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char *str)
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_GetField(Dart_Handle container, Dart_Handle name)
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
DART_EXPORT Dart_Handle Dart_RootLibrary(void)
static void FailInvokeField(const char *name, Dart_Handle result)
static void FailClosurizeConstructor(const char *name, Dart_Handle result)
#define FAIL(name, result)
static void TestFields(Dart_Handle target)
void Fail(const char *name, Dart_Handle result)
DART_EXPORT void RunTests()
static bool is_dart_precompiled_runtime
#define FAIL_INVOKE_FIELD(name, result)
const uint8_t uint32_t uint32_t GError ** error
DEF_SWITCHES_START aot vmservice shared library name