1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-12 21:43:03 +00:00

Add api for checking build compatibilty.

This commit is contained in:
Andrew Chambers
2019-05-28 13:43:35 +12:00
parent ce9cd4fcef
commit 3c304ddc35
2 changed files with 41 additions and 0 deletions

View File

@@ -26,6 +26,16 @@
#include "fiber.h"
#endif
static JanetBuildConfig *api_build_config = &(JanetBuildConfig){
.api_version = JANET_API_VERSION,
.single_threaded = JANET_SINGLE_THREADED_BIT,
.nanbox = JANET_NANBOX_BIT
};
const JanetBuildConfig *janet_build_config() {
return api_build_config;
}
void janet_panicv(Janet message) {
if (janet_vm_return_reg != NULL) {
*janet_vm_return_reg = message;