mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 18:18:00 +02:00
Interop typealiases
This commit is contained in:
parent
9895e0a86d
commit
4116d1e831
1 changed files with 26 additions and 0 deletions
26
BeefLibs/corlib/src/Interop.bf
Normal file
26
BeefLibs/corlib/src/Interop.bf
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
namespace System
|
||||||
|
{
|
||||||
|
namespace Interop
|
||||||
|
{
|
||||||
|
typealias c_short = int16;
|
||||||
|
typealias c_ushort = uint16;
|
||||||
|
typealias c_int = int32;
|
||||||
|
typealias c_uint = uint32;
|
||||||
|
typealias c_longlong = int64;
|
||||||
|
typealias c_ulonglong = uint64;
|
||||||
|
typealias c_intptr = int;
|
||||||
|
typealias c_uintptr = uint;
|
||||||
|
typealias c_char = char8;
|
||||||
|
typealias c_uchar = uint8;
|
||||||
|
|
||||||
|
#if BF_PLATFORM_WINDOWS
|
||||||
|
typealias c_long = int32;
|
||||||
|
typealias c_ulong = uint32;
|
||||||
|
typealias c_wchar = char16;
|
||||||
|
#else
|
||||||
|
typealias c_long = int64;
|
||||||
|
typealias c_ulong = uint64;
|
||||||
|
typealias c_wchar = char32;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue