quickjs
quickjs copied to clipboard
Add `JS_GetVersion()`
This is an attempt to make version to be more versatile and more accessible to the C code. I am not sure about specific versioning numbers, I am also fine with the existing scheme with the release date. I can adjust the patch accordingly.
What I need:
-
The simple ability to conditionally compile against a known version (especially taking into account the recent changes) with existing libraries available in the distros. The preferred way for me is to do a simple comparison against a known version.
-
A method to get a string form of the version, to simplify the debugging of user reports.