Skip to content

Commit

Permalink
node-api: move NAPI_EXPERIMENTAL definition to gyp file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielschulhof committed Dec 22, 2023
1 parent 1ba508d commit 0f5526f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 6 additions & 3 deletions test/js-native-api/test_string/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"sources": [
"test_string.c",
"test_null.c",
]
}
]
],
"defines": [
"NAPI_EXPERIMENTAL",
],
},
],
}
3 changes: 1 addition & 2 deletions test/js-native-api/test_string/test_string.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <js_native_api.h>
#include <limits.h> // INT_MAX
#include <stdlib.h>
#include <string.h>
#define NAPI_EXPERIMENTAL
#include <js_native_api.h>
#include "../common.h"
#include "../entry_point.h"
#include "test_null.h"
Expand Down

0 comments on commit 0f5526f

Please sign in to comment.