Skip to content

Add define identifying NG to quickjs.h#881

Merged
saghul merged 1 commit intomasterfrom
ng-header-marker
Feb 3, 2025
Merged

Add define identifying NG to quickjs.h#881
saghul merged 1 commit intomasterfrom
ng-header-marker

Conversation

@saghul
Copy link
Copy Markdown
Contributor

@saghul saghul commented Feb 3, 2025

No description provided.

@saghul
Copy link
Copy Markdown
Contributor Author

saghul commented Feb 3, 2025

Yes, one could check for our QJS_VERSION_* defined, but this is more explicit.

@bnoordhuis
Copy link
Copy Markdown
Contributor

What is it for? For feature-detecting new APIs you need to use QJS_VERSION_{MAJOR,MINOR} anyway.

@saghul
Copy link
Copy Markdown
Contributor Author

saghul commented Feb 3, 2025

My thinking is that it could be useful for projects that allow being built against both flavours. It should be possible with minimal changes, I think.

@saghul saghul merged commit 1486c85 into master Feb 3, 2025
@saghul saghul deleted the ng-header-marker branch February 3, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants