This commit is contained in:
blueloveTH 2023-05-07 20:59:57 +08:00
parent 9fb35f69ba
commit d5e2dbd1fd
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ Currently, pkpy is almost~ fast as cpython 3.8. Here is a benchmark result of a
Benchmark files are located in `benchmarks/`. Benchmark files are located in `benchmarks/`.
https://github.com/blueloveTH/pocketpy/actions/runs/4729609975/jobs/8392313856 See [actions/runs/4729609975/jobs/8392313856](https://github.com/blueloveTH/pocketpy/actions/runs/4729609975/jobs/8392313856).
``` ```

View File

@ -37,7 +37,7 @@ std::cout << CAST(Str, i); // abc
### Type check ### Type check
+ `is_type(PyObject* obj, Type type)` + `bool is_type(PyObject* obj, Type type)`
+ `is_non_tagged_type(PyObject* obj, Type type)` + `bool is_non_tagged_type(PyObject* obj, Type type)`
+ `VM::check_type(PyObject* obj, Type type)` + `void VM::check_type(PyObject* obj, Type type)` throws `TypeError` on failure
+ `VM::check_non_tagged_type(PyObject* obj, Type type)` + `void VM::check_non_tagged_type(PyObject* obj, Type type)` throws `TypeError` on failure