|
@@ -42,6 +42,7 @@
|
|
|
#define DEBUG_NO_AUTO_GC 0
|
|
#define DEBUG_NO_AUTO_GC 0
|
|
|
#define DEBUG_GC_STATS 0
|
|
#define DEBUG_GC_STATS 0
|
|
|
|
|
|
|
|
|
|
+// config macros
|
|
|
#ifndef PK_ENABLE_OS
|
|
#ifndef PK_ENABLE_OS
|
|
|
|
|
|
|
|
#ifdef __ANDROID__
|
|
#ifdef __ANDROID__
|
|
@@ -59,6 +60,14 @@
|
|
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+#if PK_ENABLE_THREAD
|
|
|
|
|
+#define THREAD_LOCAL thread_local
|
|
|
|
|
+#else
|
|
|
|
|
+#define THREAD_LOCAL
|
|
|
|
|
+#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
|
|
@@ -128,7 +137,6 @@ struct Type {
|
|
|
operator int() const noexcept { return this->index; }
|
|
operator int() const noexcept { return this->index; }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-#define THREAD_LOCAL // thread_local
|
|
|
|
|
#define CPP_LAMBDA(x) ([](VM* vm, ArgsView args) { return x; })
|
|
#define CPP_LAMBDA(x) ([](VM* vm, ArgsView args) { return x; })
|
|
|
|
|
|
|
|
#ifdef POCKETPY_H
|
|
#ifdef POCKETPY_H
|