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

View File

@ -321,8 +321,8 @@ bool py_str(py_Ref val);
/// The return value of the most recent call.
py_GlobalRef py_retval();
#define py_isnil(self) ((self)->type == 0)
#define py_isnone(self) ((self)->type == tp_none_type)
#define py_isnil(self) py_istype(self, 0)
#define py_isnone(self) py_istype(self, tp_none_type)
/* tuple */