Flipper Zero Firmware
Loading...
Searching...
No Matches
mjs_features.h
1/*
2 * Copyright (c) 2017 Cesanta Software Limited
3 * All rights reserved
4 */
5
6#ifndef MJS_FEATURES_H_
7#define MJS_FEATURES_H_
8
9#if !defined(MJS_AGGRESSIVE_GC)
10#define MJS_AGGRESSIVE_GC 0
11#endif
12
13#if !defined(MJS_MEMORY_STATS)
14#define MJS_MEMORY_STATS 0
15#endif
16
17/*
18 * MJS_GENERATE_JSC: if enabled, and if mmapping is also enabled (CS_MMAP),
19 * then execution of any .js file will result in creation of a .jsc file with
20 * precompiled bcode, and this .jsc file will be mmapped, instead of keeping
21 * bcode in RAM.
22 *
23 * By default it's enabled (provided that CS_MMAP is defined)
24 */
25#if !defined(MJS_GENERATE_JSC)
26#if defined(CS_MMAP)
27#define MJS_GENERATE_JSC 1
28#else
29#define MJS_GENERATE_JSC 0
30#endif
31#endif
32
33#endif /* MJS_FEATURES_H_ */