Finalize Bindings
This commit is contained in:
@@ -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
27
src/Library.bf
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user