JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce_QuickJSHelpers.h File Reference

Classes

struct  juce::detail::DynamicObjectWrapper
 
struct  juce::detail::JSFunctionArguments
 
class  juce::detail::QuickJSWrapper
 

Namespaces

namespace  juce
 
namespace  juce::detail
 

Typedefs

using juce::detail::GetterFn = qjs::JSValue(*)(qjs::JSContext *ctx, qjs::JSValueConst thisVal, int magic)
 
using juce::detail::SetterFn = qjs::JSValue(*)(qjs::JSContext *ctx, qjs::JSValueConst thisVal, qjs::JSValueConst val, int magic)
 
using juce::detail::VarOrError = std::variant< var, String >
 

Functions

static qjs::JSClassID juce::detail::createClassId ()
 
static var juce::detail::discardError (VarOrError variant)
 
template<typename T >
static int64_t juce::detail::fromJuceInt64 (const T &convertible)
 
static qjs::JSValue juce::detail::getOrCreateProperty (qjs::JSContext *ctx, qjs::JSValueConst object, const char *name)
 
static bool juce::detail::hasProperty (qjs::JSContext *ctx, qjs::JSValueConst object, const char *name)
 
static qjs::JSValue juce::detail::juceToQuickJs (const var &v, qjs::JSContext *ctx)
 
static qjs::JSCFunctionListEntry juce::detail::makeFunctionListEntry (const char *name, GetterFn getter, SetterFn setter, int16_t magic)
 
static qjs::JSValue juce::detail::makeUndefined ()
 
static VarOrError juce::detail::quickJSToJuce (const qjs::QuickJSContext::ValuePtr &ptr)
 
static std::vector< varjuce::detail::quickJSToJuce (Span< qjs::JSValueConst > args, qjs::JSContext *ctx)
 
template<typename T >
static int64_t juce::detail::toJuceInt64 (const T &convertible)
 
static uint32_t juce::detail::toUint32 (int64 value)
 
static JUCE_END_IGNORE_WARNINGS_GCC_LIKE var juce::detail::tryQuickJSToJuce (const qjs::QuickJSContext::ValuePtr &ptr, const qjs::JSValue *parent=nullptr)