mirror of
https://github.com/pocketpy/pocketpy
synced 2026-08-05 05:37:10 +08:00
fix PK_THREAD_LOCAL
This commit is contained in:
parent
a06e6ac6ba
commit
799829a8aa
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
typedef struct PyObject PyObject;
|
typedef struct PyObject PyObject;
|
||||||
typedef struct VM VM;
|
typedef struct VM VM;
|
||||||
extern _Thread_local VM* pk_current_vm;
|
extern PK_THREAD_LOCAL VM* pk_current_vm;
|
||||||
|
|
||||||
typedef struct py_TValue {
|
typedef struct py_TValue {
|
||||||
py_Type type;
|
py_Type type;
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#include "pocketpy/common/name.h"
|
#include "pocketpy/common/name.h"
|
||||||
#include "pocketpy/interpreter/vm.h"
|
#include "pocketpy/interpreter/vm.h"
|
||||||
|
|
||||||
_Thread_local VM* pk_current_vm;
|
PK_THREAD_LOCAL VM* pk_current_vm;
|
||||||
|
|
||||||
static bool pk_initialized;
|
static bool pk_initialized;
|
||||||
static bool pk_finalized;
|
static bool pk_finalized;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user