tli/const.h
Jonas Maier acff699d2c aoc16
2022-12-16 12:45:06 +01:00

20 lines
504 B
C

#ifndef __CONST_H__
#define __CONST_H__
// number of "values" that can be stored in the interpreter
#define MEM_LEN 10000000
// maximal usage in percent:
// this is to avoid repeatedly running the garbage collector to free
// only a few values, and instead notice that we should increase the memory size.
#define MAX_MEMORY_USAGE 60
// number of symbols that can be defined
#define SYM_LEN 1024
#define SYM_SIZE 16
// number of builtin functions that can be defined
#define MAX_BUILTINS 100
#endif