mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
e9b2060276
commit
b126fc2c9b
@ -21,7 +21,7 @@
|
|||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
#define PK_VERSION "1.2.1"
|
#define PK_VERSION "1.2.2"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "export.h"
|
#include "export.h"
|
||||||
@ -131,7 +131,7 @@ struct Type {
|
|||||||
#define PK_ASSERT(x) if(!(x)) FATAL_ERROR();
|
#define PK_ASSERT(x) if(!(x)) FATAL_ERROR();
|
||||||
|
|
||||||
struct PyObject;
|
struct PyObject;
|
||||||
#define PK_BITS(p) (reinterpret_cast<i64>(p))
|
#define PK_BITS(p) (reinterpret_cast<Number::int_t>(p))
|
||||||
|
|
||||||
// special singals, is_tagged() for them is true
|
// special singals, is_tagged() for them is true
|
||||||
inline PyObject* const PY_NULL = (PyObject*)0b000011; // tagged null
|
inline PyObject* const PY_NULL = (PyObject*)0b000011; // tagged null
|
||||||
|
@ -201,9 +201,9 @@ Str obj_type_name(VM* vm, Type type);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
union BitsCvt {
|
union BitsCvt {
|
||||||
i64 _int;
|
Number::int_t _int;
|
||||||
f64 _float;
|
f64 _float;
|
||||||
BitsCvt(i64 val) : _int(val) {}
|
BitsCvt(Number::int_t val) : _int(val) {}
|
||||||
BitsCvt(f64 val) : _float(val) {}
|
BitsCvt(f64 val) : _float(val) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user