mirror of
https://github.com/janet-lang/janet
synced 2025-11-04 17:43:02 +00:00
Update version schema - now have version number
and build number.
This commit is contained in:
@@ -779,6 +779,8 @@ JanetTable *janet_core_env(void) {
|
||||
/* Platform detection */
|
||||
janet_def(env, "janet/version", janet_cstringv(JANET_VERSION),
|
||||
"The version number of the running janet program.");
|
||||
janet_def(env, "janet/build", janet_cstringv(JANET_BUILD),
|
||||
"The build identifier of the running janet program.");
|
||||
|
||||
/* Set as gc root */
|
||||
janet_gcroot(janet_wrap_table(env));
|
||||
|
||||
Reference in New Issue
Block a user