Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions | Variables
native_assets_api_impl.cc File Reference
#include "include/bin/native_assets_api.h"
#include "platform/globals.h"
#include "platform/utils.h"
#include "bin/file.h"
#include "platform/uri.h"

Go to the source code of this file.

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define SET_ERROR_MSG(error_msg, format, ...)
 

Functions

CStringUniquePtr dart::bin::CleanScriptUri (const char *script_uri)
 
static void * dart::bin::LoadDynamicLibrary (const char *library_file, char **error=nullptr)
 
static void dart::bin::WrapError (const char *path, char **error)
 
static void dart::bin::WrapErrorRelative (const char *path, const char *script_uri, char **error)
 
static void * dart::bin::ResolveSymbol (void *handle, const char *symbol, char **error)
 

Variables

const char * dart::bin::file_schema = "file://"
 
const int dart::bin::file_schema_length = 7
 

Macro Definition Documentation

◆ SET_ERROR_MSG

#define SET_ERROR_MSG (   error_msg,
  format,
  ... 
)
Value:
intptr_t len = snprintf(nullptr, 0, format, __VA_ARGS__); \
char* msg = reinterpret_cast<char*>(malloc(len + 1)); \
snprintf(msg, len + 1, format, __VA_ARGS__); \
*error_msg = msg
uint32_t uint32_t * format
void * malloc(size_t size)
Definition: allocation.cc:19

Definition at line 28 of file native_assets_api_impl.cc.