231103.1 · 7f4a9ed91bbecb84e39f4bc8030247ce5116ddf8
Reorganize examples into categorized folders (#341)
* refactor: create directory structure to organize exmaples
* test: update test_all to work with new directory structure
* fix: bug in test_all if no package.json scripts
* test: cleanup output of test_all
* fix: remove default test script that throws from thread_safe_function_with_object_wrap
* fix: remove build_with_cmake from .gitignore
* fix: swith to ' from " and remove subdir from getAllTests call
* test: add extra test cases for npm start and just running the pkgJson.main with node
* refactor: move all examples to src directory
* refactor: add numbers to categories so they are ordered in the src folder
* refactor: simplify getAllExamples in test_all.js
* docs: add directory structure to README.md
* docs: update directory structure to README.md
* docs: update directory structure to README.md
* docs: update directory structure to README.md
* docs: update directory structure example in readme
* add back build_with_cmake
---------
Co-authored-by: legendecas <legendecas@gmail.com>
reading declarations
Changes to src/2-js-to-native-conversion/8_passing_wrapped/napi/myobject.h. All files
src/2-js-to-native-conversion/8_passing_wrapped/napi/myobject.h
@@ -0,0 +1,26 @@+#ifndef TEST_ADDONS_NAPI_8_PASSING_WRAPPED_MYOBJECT_H_+#define TEST_ADDONS_NAPI_8_PASSING_WRAPPED_MYOBJECT_H_++#include <node_api.h>++class MyObject {+ public:+ static napi_status Init(napi_env env);+ static void Destructor(napi_env env, void* nativeObject, void* finalize_hint);+ static napi_status NewInstance(napi_env env,+ napi_value arg,+ napi_value* instance);+ double Val() const { return val_; }++ private:+ MyObject();+ ~MyObject();++ static inline napi_value Constructor(napi_env env);+ static napi_value New(napi_env env, napi_callback_info info);+ double val_;+ napi_env env_;+ napi_ref wrapper_;+};++#endif // TEST_ADDONS_NAPI_8_PASSING_WRAPPED_MYOBJECT_H_