| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c23c60f commit 567afc7
65 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1423,6 +1423,7 @@ FORMAT_CPP_FILES += $(LINT_CPP_FILES) | |||
| 1423 | 1423 | # C source codes. | |
| 1424 | 1424 | FORMAT_CPP_FILES += $(wildcard \ | |
| 1425 | 1425 | benchmark/napi/*/*.c \ | |
| 1426 | + test/js-native-api/*.h \ | ||
| 1426 | 1427 | test/js-native-api/*/*.c \ | |
| 1427 | 1428 | test/js-native-api/*/*.h \ | |
| 1428 | 1429 | test/node-api/*/*.c \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | #include <js_native_api.h> | |
| 2 | 2 | #include "../common.h" | |
| 3 | + #include "../entry_point.h" | ||
| 3 | 4 | ||
| 4 | 5 | static napi_value Add(napi_env env, napi_callback_info info) { | |
| 5 | 6 | size_t argc = 2; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,6 @@ | |||
| 3 | 3 | { | |
| 4 | 4 | "target_name": "2_function_arguments", | |
| 5 | 5 | "sources": [ | |
| 6 | - "../entry_point.c", | ||
| 7 | 6 | "2_function_arguments.c" | |
| 8 | 7 | ] | |
| 9 | 8 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,7 @@ | |||
| 1 | 1 | #include <js_native_api.h> | |
| 2 | - #include "../common.h" | ||
| 3 | 2 | #include <string.h> | |
| 3 | + #include "../common.h" | ||
| 4 | + #include "../entry_point.h" | ||
| 4 | 5 | ||
| 5 | 6 | static napi_value RunCallback(napi_env env, napi_callback_info info) { | |
| 6 | 7 | size_t argc = 2; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,6 @@ | |||
| 3 | 3 | { | |
| 4 | 4 | "target_name": "3_callbacks", | |
| 5 | 5 | "sources": [ | |
| 6 | - "../entry_point.c", | ||
| 7 | 6 | "3_callbacks.c" | |
| 8 | 7 | ] | |
| 9 | 8 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | #include <js_native_api.h> | |
| 2 | 2 | #include "../common.h" | |
| 3 | + #include "../entry_point.h" | ||
| 3 | 4 | ||
| 4 | 5 | static napi_value CreateObject(napi_env env, napi_callback_info info) { | |
| 5 | 6 | size_t argc = 1; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,6 @@ | |||
| 3 | 3 | { | |
| 4 | 4 | "target_name": "4_object_factory", | |
| 5 | 5 | "sources": [ | |
| 6 | - "../entry_point.c", | ||
| 7 | 6 | "4_object_factory.c" | |
| 8 | 7 | ] | |
| 9 | 8 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | #include <js_native_api.h> | |
| 2 | 2 | #include "../common.h" | |
| 3 | + #include "../entry_point.h" | ||
| 3 | 4 | ||
| 4 | 5 | static napi_value MyFunction(napi_env env, napi_callback_info info) { | |
| 5 | 6 | napi_value str; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,6 @@ | |||
| 3 | 3 | { | |
| 4 | 4 | "target_name": "5_function_factory", | |
| 5 | 5 | "sources": [ | |
| 6 | - "../entry_point.c", | ||
| 7 | 6 | "5_function_factory.c" | |
| 8 | 7 | ] | |
| 9 | 8 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | #include "../common.h" | |
| 2 | + #include "../entry_point.h" | ||
| 2 | 3 | #include "assert.h" | |
| 3 | 4 | #include "myobject.h" | |
| 4 | 5 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments