| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 19b6fc9 commit 1e2bc2c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,5 @@ | |||
| 1 | - #include <stdlib.h> | ||
| 2 | - #define NAPI_EXPERIMENTAL | ||
| 3 | 1 | #include <node_api.h> | |
| 2 | + #include <stdlib.h> | ||
| 4 | 3 | ||
| 5 | 4 | #define NAPI_CALL(env, call) \ | |
| 6 | 5 | do { \ | |
@@ -34,8 +33,7 @@ SetCount(napi_env env, napi_callback_info info) { | |||
| 34 | 33 | return NULL; | |
| 35 | 34 | } | |
| 36 | 35 | ||
| 37 | - static void | ||
| 38 | - IncrementCounter(napi_env env, void* data, void* hint) { | ||
| 36 | + static void IncrementCounter(node_api_nogc_env env, void* data, void* hint) { | ||
| 39 | 37 | size_t* count = data; | |
| 40 | 38 | (*count) = (*count) + 1; | |
| 41 | 39 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments