Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: enable wrapping Napi namespace with custom namespace #1135

Merged
merged 1 commit into from Feb 22, 2022

Commits on Feb 18, 2022

  1. src: enable wrapping Napi namespace with custom namespace

    Enable support for a `NAPI_CPP_CUSTOM_NAMESPACE` that would wrap
    the `Napi` namespace in a custom namespace.
    
    This can be helpful when there are multiple parts of a compiled
    shared library or executable that depend on `node-addon-api`,
    but different versions of it. In order to avoid symbol conflicts
    in these cases, namespacing can be used to make sure that the
    linker would not merge definitions that the compiler potentially
    generates for the node-addon-api methods.
    addaleax committed Feb 18, 2022
    Copy the full SHA
    b9ab8ba View commit details
    Browse the repository at this point in the history