Skip to content

Commit

Permalink
New node-gyp compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Apr 26, 2024
1 parent a62a77c commit e958fd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"homepage": "https://jazz-soft.net",
"bugs": "https://github.com/jazz-soft/midi-test/issues",
"devDependencies": {
"eslint": "^8.57.0",
"eslint": "^9.1.1",
"jazz-midi": "^1.7.9",
"jzz": "^1.8.1",
"mocha": "^10.3.0"
"jzz": "^1.8.2",
"mocha": "^10.4.0"
},
"gypfile": true,
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions src/miditest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ std::string read_utf8(napi_env env, napi_value obj)


napi_value MidiThread(napi_env env, napi_callback_info args) { return 0; }
void FinalizeThread(napi_env env, void* finalize_data, void* finalize_hint) { /* std::cout << "Finalize!!!\n"; */ }
void FinalizeThread(node_api_nogc_env env, void* finalize_data, void* finalize_hint) { /* std::cout << "Finalize!!!\n"; */ }
void MidiCallback(CMidiData* data) { napi_call_threadsafe_function(TSF, data, napi_tsfn_nonblocking); }


Expand Down Expand Up @@ -80,7 +80,7 @@ void start_thread(napi_env env)
void stop_thread(napi_env env) { napi_release_threadsafe_function(TSF, napi_tsfn_release); }


void destroy(napi_env env, void* data, void* hint) { delete (CMidi*)data; }
void destroy(node_api_nogc_env env, void* data, void* hint) { delete (CMidi*)data; }


napi_value name(napi_env env, napi_callback_info args)
Expand Down

0 comments on commit e958fd7

Please sign in to comment.