| 3392 | #if NAPI_VERSION > 5 |
| 3393 | template <typename T> |
| 3394 | class Addon : public InstanceWrap<T> { |
| 3395 | public: |
| 3396 | static inline Object Init(Env env, Object exports); |
| 3397 | static T* Unwrap(Object wrapper); |
| 3398 | |
| 3399 | protected: |
| 3400 | using AddonProp = ClassPropertyDescriptor<T>; |
| 3401 | void DefineAddon(Object exports, |
| 3402 | const std::initializer_list<AddonProp>& props); |
| 3403 | Napi::Object DefineProperties(Object object, |
| 3404 | const std::initializer_list<AddonProp>& props); |
| 3405 | |
| 3406 | private: |
| 3407 | Object entry_point_; |
| 3408 | }; |
| 3409 | #endif // NAPI_VERSION > 5 |
| 3410 | |
| 3411 | #ifdef NAPI_CPP_CUSTOM_NAMESPACE |
nothing calls this directly
no outgoing calls
no test coverage detected