Finalize Bindings

This commit is contained in:
Rune
2026-01-29 19:12:36 +01:00
parent fb9601fcc6
commit a369ab2dc0
12 changed files with 8201 additions and 2 deletions

View File

@@ -4646,7 +4646,7 @@ extension Clang
*/
[AllowDuplicates] public enum CXObjCPropertyAttrKind : c_int {
noattr = 0x00,
readonly = 0x01,
@readonly = 0x01,
getter = 0x02,
assign = 0x04,
readwrite = 0x08,
@@ -4658,7 +4658,7 @@ extension Clang
weak = 0x200,
strong = 0x400,
unsafe_unretained = 0x800,
class = 0x1000,
@class = 0x1000,
}
extension Clang

27
src/Library.bf Normal file
View File

@@ -0,0 +1,27 @@
using System;
using System.Interop;
namespace LibClang;
static
{
[Comptime(ConstEval=true)]
public static StringView CINDEX_VERSION_STRINGIZE(c_int major, c_int minor) => scope $"{major}.{minor}";
[Comptime(ConstEval=true)]
public static c_int CINDEX_VERSION_ENCODE(c_int major, c_int minor) => (((major) * 10000) + ((minor) * 1));
}
static class Clang
{
protected const let dll = "libclang" +
#if BF_PLATFORM_WINDOWS
".dll";
#elif BF_PLATFORM_MACOS
".dylib";
#else
".so";
#endif
protected typealias time_t = uint32;
}