diff options
author | dcode <dcode@dcode.io> | 2022-07-13 17:02:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 08:02:19 -0700 |
commit | 2ae1a61ae4d3b23e5f7feaf4c7daf0ce72ffbb92 (patch) | |
tree | a7bedd715048f386541417c9a9967174b638d2dd /src/binaryen-c.h | |
parent | 6ce01c552ef4ac2cdc44f74e6e55797ea512f539 (diff) | |
download | binaryen-2ae1a61ae4d3b23e5f7feaf4c7daf0ce72ffbb92.tar.gz binaryen-2ae1a61ae4d3b23e5f7feaf4c7daf0ce72ffbb92.tar.bz2 binaryen-2ae1a61ae4d3b23e5f7feaf4c7daf0ce72ffbb92.zip |
[C-API] Add type system C-API (#4790)
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r-- | src/binaryen-c.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index bd8e19048..bf8ed01bb 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -129,6 +129,16 @@ BINARYEN_API BinaryenPackedType BinaryenPackedTypeNotPacked(void); BINARYEN_API BinaryenPackedType BinaryenPackedTypeInt8(void); BINARYEN_API BinaryenPackedType BinaryenPackedTypeInt16(void); +// TypeSystem + +typedef uint32_t BinaryenTypeSystem; + +BINARYEN_API BinaryenTypeSystem BinaryenTypeSystemEquirecursive(void); +BINARYEN_API BinaryenTypeSystem BinaryenTypeSystemNominal(void); +BINARYEN_API BinaryenTypeSystem BinaryenTypeSystemIsorecursive(void); +BINARYEN_API BinaryenTypeSystem BinaryenGetTypeSystem(void); +BINARYEN_API void BinaryenSetTypeSystem(BinaryenTypeSystem typeSystem); + // Expression ids (call to get the value of each; you can cache them) typedef uint32_t BinaryenExpressionId; |