Compare commits

..

No commits in common. "76a17ab251460b15f2645baa828480e326b3b5d7" and "601c1029cea62fa0722c976f7096c89abd6c4795" have entirely different histories.

4 changed files with 5 additions and 15 deletions

View File

@ -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.
These platforms are officially tested.
> C99 compilers also work currently according to users' feedback.
+ Windows 64-bit
+ Linux 64-bit / 32-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:
+ `--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
+ `NDEBUG` macro should be defined for release build, or you will get poor performance

View File

@ -29,11 +29,9 @@ print(primes)
## 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.
> C99 compilers also work currently according to users' feedback.
+ Windows 64-bit
+ Linux 64-bit / 32-bit
+ macOS 64-bit

View File

@ -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:
+ `--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
+ `NDEBUG` macro should be defined for release build, or you will get poor performance

View File

@ -1,6 +1,7 @@
#pragma once
#include <stdio.h>
#include <stdlib.h>
#define PK_REGION(name) 1
@ -47,10 +48,3 @@ typedef struct RefCounted {
PK_FREE(obj); \
} \
} 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