Shaka Player Embedded
shaka::impl::JsConstructorCreateOrThrow< This, Create > Struct Template Reference

#include <register_member.h>

Detailed Description

template<typename This, typename Create = typename get_create_type<This>::type>
struct shaka::impl::JsConstructorCreateOrThrow< This, Create >

This handles either constructing a new C++ object and wrapping it, or throwing an exception if it can't be constructed in JavaScript. This is handled similar to a normal function WRT to argument conversions. Then a special case of CallHelper will construct the C++ and JavaScript objects and link them together.

Definition at line 474 of file register_member.h.


The documentation for this struct was generated from the following file: