Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
debugger_api_impl_test.cc File Reference
#include <include/dart_api.h>
#include "include/dart_tools_api.h"
#include "vm/class_finalizer.h"
#include "vm/compiler/jit/compiler.h"
#include "vm/dart_api_impl.h"
#include "vm/dart_api_state.h"
#include "vm/debugger.h"
#include "vm/debugger_api_impl_test.h"
#include "vm/isolate.h"
#include "vm/object_store.h"
#include "vm/symbols.h"

Go to the source code of this file.

Namespaces

namespace  dart
 

Macros

#define Z   (T->zone())
 
#define UNWRAP_AND_CHECK_PARAM(type, var, param)
 
#define CHECK_AND_CAST(type, var, param)
 
#define CHECK_NOT_NULL(param)
 
#define CHECK_DEBUGGER(isolate)
 

Functions

Dart_Handle dart::Dart_StackTraceLength (Dart_StackTrace trace, intptr_t *length)
 
Dart_Handle dart::Dart_GetActivationFrame (Dart_StackTrace trace, int frame_index, Dart_ActivationFrame *frame)
 
Dart_Handle dart::Dart_GetStackTrace (Dart_StackTrace *trace)
 
Dart_Handle dart::Dart_GetStackTraceFromError (Dart_Handle handle, Dart_StackTrace *trace)
 
Dart_Handle dart::Dart_ActivationFrameInfo (Dart_ActivationFrame activation_frame, Dart_Handle *function_name, Dart_Handle *script_url, intptr_t *line_number, intptr_t *column_number)
 
Dart_Handle dart::Dart_SetBreakpoint (Dart_Handle script_url_in, intptr_t line_number)
 
Dart_Handle dart::Dart_RemoveBreakpoint (Dart_Handle breakpoint_id_in)
 
Dart_Handle dart::Dart_EvaluateStaticExpr (Dart_Handle lib_handle, Dart_Handle expr_in)
 
Dart_Handle dart::Dart_LibraryId (Dart_Handle library, intptr_t *library_id)
 
Dart_Handle dart::Dart_GetLibraryDebuggable (intptr_t library_id, bool *is_debuggable)
 
Dart_Handle dart::Dart_SetLibraryDebuggable (intptr_t library_id, bool is_debuggable)
 

Macro Definition Documentation

◆ CHECK_AND_CAST

#define CHECK_AND_CAST (   type,
  var,
  param 
)
Value:
type* var = nullptr; \
do { \
if (param == nullptr) { \
return Api::NewError("%s expects argument '%s' to be non-null.", \
CURRENT_FUNC, #param); \
} \
var = reinterpret_cast<type*>(param); \
} while (0)
GLenum type
#define CURRENT_FUNC
Definition: dart_api_impl.h:28

Definition at line 41 of file debugger_api_impl_test.cc.

◆ CHECK_DEBUGGER

#define CHECK_DEBUGGER (   isolate)
Value:
if (isolate->debugger() == nullptr) { \
return Api::NewError("%s requires debugger support.", CURRENT_FUNC); \
}

Definition at line 57 of file debugger_api_impl_test.cc.

◆ CHECK_NOT_NULL

#define CHECK_NOT_NULL (   param)
Value:
if (param == nullptr) { \
return Api::NewError("%s expects argument '%s' to be non-null.", \
CURRENT_FUNC, #param); \
}

Definition at line 51 of file debugger_api_impl_test.cc.

◆ UNWRAP_AND_CHECK_PARAM

#define UNWRAP_AND_CHECK_PARAM (   type,
  var,
  param 
)
Value:
type& var = type::Handle(); \
do { \
const Object& tmp = Object::Handle(Api::UnwrapHandle(param)); \
if (tmp.IsNull()) { \
return Api::NewError("%s expects argument '%s' to be non-null.", \
CURRENT_FUNC, #param); \
} else if (tmp.IsApiError()) { \
return param; \
} else if (!tmp.Is##type()) { \
return Api::NewError("%s expects argument '%s' to be of type %s.", \
CURRENT_FUNC, #param, #type); \
} \
var ^= tmp.ptr(); \
} while (0)

Definition at line 25 of file debugger_api_impl_test.cc.

◆ Z

#define Z   (T->zone())

Definition at line 21 of file debugger_api_impl_test.cc.