15 #ifndef SHAKA_EMBEDDED_MAPPING_JS_UTILS_H_ 16 #define SHAKA_EMBEDDED_MAPPING_JS_UTILS_H_ 44 const std::vector<std::string>& names);
51 template <
typename T,
typename... Args>
53 auto* p =
new T(std::forward<Args>(args)...);
64 std::function<
void()> on_done);
68 #endif // SHAKA_EMBEDDED_MAPPING_JS_UTILS_H_
ReturnVal< JsValue > GetDescendant(Handle< JsObject > root, const std::vector< std::string > &names)
void HandleNetworkFuture(Promise promise, std::future< optional< Error >> future, std::function< void()> on_done)
static ObjectTracker * Instance()
RefPtr< T > MakeJsRef(Args &&... args)