1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-18 11:19:56 +00:00

first experiment with bigint

This commit is contained in:
J.-F. Cap 2019-03-12 23:58:54 +01:00 committed by Calvin Rose
parent 41bb6a9833
commit d29e3a1199
3 changed files with 14 additions and 0 deletions

View File

@ -827,7 +827,11 @@ JanetTable *janet_core_env(JanetTable *replacements) {
#ifdef JANET_TYPED_ARRAY
janet_lib_typed_array(env);
#endif
#ifdef JANET_BIGINT
janet_lib_bigint(env);
#endif
#ifdef JANET_BOOTSTRAP
/* Run bootstrap source */
janet_dobytes(env, janet_gen_core, janet_gen_core_size, "core.janet", NULL);

View File

@ -92,5 +92,9 @@ void janet_lib_peg(JanetTable *env);
#ifdef JANET_TYPED_ARRAY
void janet_lib_typed_array(JanetTable *env);
#endif
#ifdef JANET_BIGINT
void janet_lib_bigint(JanetTable *env);
#endif
#endif

View File

@ -133,6 +133,12 @@ extern "C" {
#define JANET_TYPED_ARRAY
#endif
/* Enable or disable the bigint module */
#ifndef JANET_NO_BIGINT
#define JANET_BIGINT
#endif
/* How to export symbols */
#ifndef JANET_API
#ifdef JANET_WINDOWS