This commit is contained in:
blueloveTH 2024-07-10 00:15:39 +08:00
parent 58d00d45b8
commit 35f03bf2e2

View File

@ -16,7 +16,7 @@ typedef int64_t py_i64;
typedef double py_f64; typedef double py_f64;
/* string_view */ /* string_view */
typedef struct c11_sv{ typedef struct c11_sv {
const char* data; const char* data;
int size; int size;
} c11_sv; } c11_sv;
@ -321,8 +321,8 @@ bool py_str(py_Ref val);
/// The return value of the most recent call. /// The return value of the most recent call.
py_GlobalRef py_retval(); py_GlobalRef py_retval();
#define py_isnil(self) ((self)->type == 0) #define py_isnil(self) py_istype(self, 0)
#define py_isnone(self) ((self)->type == tp_none_type) #define py_isnone(self) py_istype(self, tp_none_type)
/* tuple */ /* tuple */