mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-23 13:00:17 +00:00
up
This commit is contained in:
parent
af945293cd
commit
2d468311a8
11
src/common.h
11
src/common.h
@ -34,10 +34,19 @@
|
|||||||
#define UNREACHABLE() throw std::runtime_error( __FILE__ + std::string(":") + std::to_string(__LINE__) + " UNREACHABLE()!");
|
#define UNREACHABLE() throw std::runtime_error( __FILE__ + std::string(":") + std::to_string(__LINE__) + " UNREACHABLE()!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PK_VERSION "0.8.8"
|
#define PK_VERSION "0.8.9"
|
||||||
|
|
||||||
|
#if defined(__EMSCRIPTEN__) || defined(PK_32_BIT)
|
||||||
|
typedef int32_t i64;
|
||||||
|
typedef float f64;
|
||||||
|
const i64 kMinSafeInt = -((i64)1 << 30);
|
||||||
|
const i64 kMaxSafeInt = ((i64)1 << 30) - 1;
|
||||||
|
#else
|
||||||
typedef int64_t i64;
|
typedef int64_t i64;
|
||||||
typedef double f64;
|
typedef double f64;
|
||||||
|
const i64 kMinSafeInt = -((i64)1 << 62);
|
||||||
|
const i64 kMaxSafeInt = ((i64)1 << 62) - 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct Dummy { char _; };
|
struct Dummy { char _; };
|
||||||
#define DUMMY_VAL Dummy()
|
#define DUMMY_VAL Dummy()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user