mirror of
https://github.com/pocketpy/pocketpy
synced 2026-03-25 06:30:17 +00:00
Compare commits
No commits in common. "76a17ab251460b15f2645baa828480e326b3b5d7" and "601c1029cea62fa0722c976f7096c89abd6c4795" have entirely different histories.
76a17ab251
...
601c1029ce
@ -37,8 +37,6 @@ Please see https://pocketpy.dev for details and try the following resources.
|
|||||||
pkpy should work on any platform with a C11 compiler.
|
pkpy should work on any platform with a C11 compiler.
|
||||||
These platforms are officially tested.
|
These platforms are officially tested.
|
||||||
|
|
||||||
> C99 compilers also work currently according to users' feedback.
|
|
||||||
|
|
||||||
+ Windows 64-bit
|
+ Windows 64-bit
|
||||||
+ Linux 64-bit / 32-bit
|
+ Linux 64-bit / 32-bit
|
||||||
+ macOS 64-bit
|
+ macOS 64-bit
|
||||||
@ -74,7 +72,7 @@ It is safe to use `main` branch in production if CI badge is green.
|
|||||||
|
|
||||||
To compile it with your project, these flags must be set:
|
To compile it with your project, these flags must be set:
|
||||||
|
|
||||||
+ `--std=c11` flag must be set (`--std=c99` may also work)
|
+ `--std=c11` flag must be set
|
||||||
+ For MSVC, `/utf-8` flag must be set
|
+ For MSVC, `/utf-8` flag must be set
|
||||||
+ `NDEBUG` macro should be defined for release build, or you will get poor performance
|
+ `NDEBUG` macro should be defined for release build, or you will get poor performance
|
||||||
|
|
||||||
|
|||||||
@ -29,11 +29,9 @@ print(primes)
|
|||||||
|
|
||||||
## Supported platforms
|
## Supported platforms
|
||||||
|
|
||||||
pkpy should work on any platform with a C11 compiler.
|
pkpy should work on any platform with a C++17 compiler.
|
||||||
These platforms are officially tested.
|
These platforms are officially tested.
|
||||||
|
|
||||||
> C99 compilers also work currently according to users' feedback.
|
|
||||||
|
|
||||||
+ Windows 64-bit
|
+ Windows 64-bit
|
||||||
+ Linux 64-bit / 32-bit
|
+ Linux 64-bit / 32-bit
|
||||||
+ macOS 64-bit
|
+ macOS 64-bit
|
||||||
|
|||||||
@ -29,7 +29,7 @@ It is safe to use `main` branch in production if CI badge is green.
|
|||||||
|
|
||||||
To compile it with your project, these flags must be set:
|
To compile it with your project, these flags must be set:
|
||||||
|
|
||||||
+ `--std=c11` flag must be set (`--std=c99` may also work)
|
+ `--std=c11` flag must be set
|
||||||
+ For MSVC, `/utf-8` flag must be set
|
+ For MSVC, `/utf-8` flag must be set
|
||||||
+ `NDEBUG` macro should be defined for release build, or you will get poor performance
|
+ `NDEBUG` macro should be defined for release build, or you will get poor performance
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define PK_REGION(name) 1
|
#define PK_REGION(name) 1
|
||||||
|
|
||||||
@ -44,13 +45,6 @@ typedef struct RefCounted {
|
|||||||
do { \
|
do { \
|
||||||
if(--(obj)->rc.count == 0) { \
|
if(--(obj)->rc.count == 0) { \
|
||||||
(obj)->rc.dtor(obj); \
|
(obj)->rc.dtor(obj); \
|
||||||
PK_FREE(obj); \
|
PK_FREE(obj); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
// static assert
|
|
||||||
#ifndef __cplusplus
|
|
||||||
#ifndef static_assert
|
|
||||||
#define static_assert(x, msg) if(!(x)) c11__abort("static_assert failed: %s", msg)
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user