Skip to content

Commit

Permalink
Remove CFloat and CDouble
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Aug 3, 2024
1 parent 4643310 commit 54948dd
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions src/content/docs/references/docs/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,20 @@ It is possible to type a floating point by adding a suffix:

For C compatibility the following types are also defined in std::core::cinterop

| Name | c type |
| ------------ | ------------------:|
| CChar | char |
| CShort | short int |
| CUShort | unsigned short int |
| CInt | int |
| CUInt | unsigned int |
| CLong | long int |
| CULong | unsigned long int |
| CLongLong | long long |
| CULongLong | unsigned long long |
| CFloat | float |
| CDouble | double |
| CLongDouble | long double |

| Name | c type |
|-------------| ------------------:|
| CChar | char |
| CShort | short int |
| CUShort | unsigned short int |
| CInt | int |
| CUInt | unsigned int |
| CLong | long int |
| CULong | unsigned long int |
| CLongLong | long long |
| CULongLong | unsigned long long |
| CLongDouble | long double |

`float` and `double` will always match their C counterparts.

Note that signed C char and unsigned char will correspond to `ichar` and `char`. `CChar` is only available to match the default signedness of `char` on the platform.

Expand Down

0 comments on commit 54948dd

Please sign in to comment.