1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 17:57:17 +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,6 +827,10 @@ JanetTable *janet_core_env(JanetTable *replacements) {
#ifdef JANET_TYPED_ARRAY #ifdef JANET_TYPED_ARRAY
janet_lib_typed_array(env); janet_lib_typed_array(env);
#endif #endif
#ifdef JANET_BIGINT
janet_lib_bigint(env);
#endif
#ifdef JANET_BOOTSTRAP #ifdef JANET_BOOTSTRAP
/* Run bootstrap source */ /* Run bootstrap source */

View File

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

View File

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