mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
25 lines
388 B
C
25 lines
388 B
C
#pragma once
|
|
|
|
#include "stdint.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef int16_t pkpy_Type;
|
|
typedef struct PyObject PyObject;
|
|
typedef struct PyVar PyVar;
|
|
typedef struct pkpy_VM pkpy_VM;
|
|
|
|
struct pkpy_G {
|
|
pkpy_VM* vm;
|
|
} extern pkpy_g;
|
|
|
|
bool py_eq(const PyVar*, const PyVar*);
|
|
bool py_le(const PyVar*, const PyVar*);
|
|
int64_t py_hash(const PyVar*);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|