Skip to content

Commit

Permalink
Call the Init something else because we use RTLD_GLOBAL
Browse files Browse the repository at this point in the history
Refs: #104
(we hope that we are the only Pymp in Node.js)
  • Loading branch information
mmomtchev committed Oct 29, 2023
1 parent a5c8a9f commit 860acc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [1.4.3]
- Fix [#104](https://github.com/mmomtchev/pymport/issues/104), do not mess up the loading of additional binary modules after `pymport`

### [1.4.2] 2023-08-28
- Builtin Python updated to 3.10.13

Expand Down
4 changes: 2 additions & 2 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static void InitDebug() {
}
#endif

Napi::Object Init(Env env, Object exports) {
Napi::Object Pymp_Init(Env env, Object exports) {
#ifdef DEBUG
InitDebug();
#endif
Expand Down Expand Up @@ -223,4 +223,4 @@ Napi::Object Init(Env env, Object exports) {
return exports;
}

NODE_API_MODULE(pymport, Init)
NODE_API_MODULE(pymport, Pymp_Init)

0 comments on commit 860acc2

Please sign in to comment.