This commit is contained in:
blueloveTH 2023-05-04 16:22:55 +08:00
parent 564e377349
commit 5616c87a23

View File

@ -43,12 +43,19 @@
#define DEBUG_NO_AUTO_GC 0 #define DEBUG_NO_AUTO_GC 0
#define DEBUG_GC_STATS 0 #define DEBUG_GC_STATS 0
#if (defined(__ANDROID__) && __ANDROID_API__ <= 22) #ifdef __ANDROID__
#include <android/ndk-version.h>
#if __NDK_MAJOR__ <= 22
#define PK_ENABLE_OS 0 #define PK_ENABLE_OS 0
#else #else
#define PK_ENABLE_OS 1 #define PK_ENABLE_OS 1
#endif #endif
#else
#define PK_ENABLE_OS 1
#endif
// This is the maximum number of arguments in a function declaration // This is the maximum number of arguments in a function declaration
// including positional arguments, keyword-only arguments, and varargs // including positional arguments, keyword-only arguments, and varargs
#define PK_MAX_CO_VARNAMES 255 #define PK_MAX_CO_VARNAMES 255