v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Namespaces | Macros | Functions
v8helpers.cpp File Reference
#include <assert.h>
#include <sstream>
#include <set>
#include <v8toolkit.h>
#include "v8helpers.h"
Include dependency graph for v8helpers.cpp:

Go to the source code of this file.

Namespaces

 v8toolkit
 

Macros

#define STRINGIFY_VALUE_DEBUG   false
 

Functions

std::string v8toolkit::get_stack_trace_string (v8::Local< v8::StackTrace > stack_trace)
 
std::string v8toolkit::demangle_typeid_name (const std::string &mangled_name)
 
int v8toolkit::get_array_length (v8::Isolate *isolate, v8::Local< v8::Array > array)
 
int v8toolkit::get_array_length (v8::Isolate *isolate, v8::Local< v8::Value > array_value)
 
void v8toolkit::set_global_object_alias (v8::Isolate *isolate, const v8::Local< v8::Context > context, std::string alias_name)
 
std::string v8toolkit::get_type_string_for_value (v8::Local< v8::Value > value)
 
void v8toolkit::print_v8_value_details (v8::Local< v8::Value > local_value)
 
std::set< std::string > v8toolkit::make_set_from_object_keys (v8::Isolate *isolate, v8::Local< v8::Object > &object, bool own_properties_only=true)
 
std::string v8toolkit::stringify_value (v8::Isolate *isolate, const v8::Local< v8::Value > &value, bool show_all_properties=false, std::vector< v8::Local< v8::Value >> &&processed_values=std::vector< v8::Local< v8::Value >>{})
 
v8::Local< v8::Value > v8toolkit::get_key (v8::Local< v8::Context > context, v8::Local< v8::Object > object, std::string key)
 
v8::Local< v8::Value > v8toolkit::get_key (v8::Local< v8::Context > context, v8::Local< v8::Value > value, std::string key)
 
v8::Local< v8::Value > v8toolkit::call_simple_javascript_function (v8::Isolate *isolate, v8::Local< v8::Function > function)
 
void v8toolkit::ReportException (v8::Isolate *isolate, v8::TryCatch *try_catch)
 
bool v8toolkit::global_name_conflicts (const std::string &name)
 

Macro Definition Documentation

#define STRINGIFY_VALUE_DEBUG   false

Definition at line 185 of file v8helpers.cpp.

Referenced by v8toolkit::stringify_value().