-
-
Save gruebite/2dbc93450c791cc6db2621d87da700e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Builder = @import("std").build.Builder; | |
pub fn build(b: *Builder) void { | |
const mode = b.standardReleaseOptions(); | |
const lib = b.addSharedLibrary("zigdot", "src/main.zig", b.version(0, 0, 1)); | |
lib.setBuildMode(mode); | |
lib.addSystemIncludeDir("godot_headers"); | |
lib.addSystemIncludeDir("/usr/include"); | |
lib.linkSystemLibrary("c"); | |
lib.install(); | |
var main_tests = b.addTest("src/main.zig"); | |
main_tests.setBuildMode(mode); | |
const test_step = b.step("test", "Run library tests"); | |
test_step.dependOn(&main_tests.step); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub const __u_char = u8; | |
pub const __u_short = c_ushort; | |
pub const __u_int = c_uint; | |
pub const __u_long = c_ulong; | |
pub const __int8_t = i8; | |
pub const __uint8_t = u8; | |
pub const __int16_t = c_short; | |
pub const __uint16_t = c_ushort; | |
pub const __int32_t = c_int; | |
pub const __uint32_t = c_uint; | |
pub const __int64_t = c_long; | |
pub const __uint64_t = c_ulong; | |
pub const __int_least8_t = __int8_t; | |
pub const __uint_least8_t = __uint8_t; | |
pub const __int_least16_t = __int16_t; | |
pub const __uint_least16_t = __uint16_t; | |
pub const __int_least32_t = __int32_t; | |
pub const __uint_least32_t = __uint32_t; | |
pub const __int_least64_t = __int64_t; | |
pub const __uint_least64_t = __uint64_t; | |
pub const __quad_t = c_long; | |
pub const __u_quad_t = c_ulong; | |
pub const __intmax_t = c_long; | |
pub const __uintmax_t = c_ulong; | |
pub const __dev_t = c_ulong; | |
pub const __uid_t = c_uint; | |
pub const __gid_t = c_uint; | |
pub const __ino_t = c_ulong; | |
pub const __ino64_t = c_ulong; | |
pub const __mode_t = c_uint; | |
pub const __nlink_t = c_ulong; | |
pub const __off_t = c_long; | |
pub const __off64_t = c_long; | |
pub const __pid_t = c_int; | |
pub const __fsid_t = extern struct { | |
__val: [2]c_int, | |
}; | |
pub const __clock_t = c_long; | |
pub const __rlim_t = c_ulong; | |
pub const __rlim64_t = c_ulong; | |
pub const __id_t = c_uint; | |
pub const __time_t = c_long; | |
pub const __useconds_t = c_uint; | |
pub const __suseconds_t = c_long; | |
pub const __daddr_t = c_int; | |
pub const __key_t = c_int; | |
pub const __clockid_t = c_int; | |
pub const __timer_t = ?*c_void; | |
pub const __blksize_t = c_long; | |
pub const __blkcnt_t = c_long; | |
pub const __blkcnt64_t = c_long; | |
pub const __fsblkcnt_t = c_ulong; | |
pub const __fsblkcnt64_t = c_ulong; | |
pub const __fsfilcnt_t = c_ulong; | |
pub const __fsfilcnt64_t = c_ulong; | |
pub const __fsword_t = c_long; | |
pub const __ssize_t = c_long; | |
pub const __syscall_slong_t = c_long; | |
pub const __syscall_ulong_t = c_ulong; | |
pub const __loff_t = __off64_t; | |
pub const __caddr_t = [*c]u8; | |
pub const __intptr_t = c_long; | |
pub const __socklen_t = c_uint; | |
pub const __sig_atomic_t = c_int; | |
pub const int_least8_t = __int_least8_t; | |
pub const int_least16_t = __int_least16_t; | |
pub const int_least32_t = __int_least32_t; | |
pub const int_least64_t = __int_least64_t; | |
pub const uint_least8_t = __uint_least8_t; | |
pub const uint_least16_t = __uint_least16_t; | |
pub const uint_least32_t = __uint_least32_t; | |
pub const uint_least64_t = __uint_least64_t; | |
pub const int_fast8_t = i8; | |
pub const int_fast16_t = c_long; | |
pub const int_fast32_t = c_long; | |
pub const int_fast64_t = c_long; | |
pub const uint_fast8_t = u8; | |
pub const uint_fast16_t = c_ulong; | |
pub const uint_fast32_t = c_ulong; | |
pub const uint_fast64_t = c_ulong; | |
pub const intmax_t = __intmax_t; | |
pub const uintmax_t = __uintmax_t; | |
pub const GODOT_OK = 0; | |
pub const GODOT_FAILED = 1; | |
pub const GODOT_ERR_UNAVAILABLE = 2; | |
pub const GODOT_ERR_UNCONFIGURED = 3; | |
pub const GODOT_ERR_UNAUTHORIZED = 4; | |
pub const GODOT_ERR_PARAMETER_RANGE_ERROR = 5; | |
pub const GODOT_ERR_OUT_OF_MEMORY = 6; | |
pub const GODOT_ERR_FILE_NOT_FOUND = 7; | |
pub const GODOT_ERR_FILE_BAD_DRIVE = 8; | |
pub const GODOT_ERR_FILE_BAD_PATH = 9; | |
pub const GODOT_ERR_FILE_NO_PERMISSION = 10; | |
pub const GODOT_ERR_FILE_ALREADY_IN_USE = 11; | |
pub const GODOT_ERR_FILE_CANT_OPEN = 12; | |
pub const GODOT_ERR_FILE_CANT_WRITE = 13; | |
pub const GODOT_ERR_FILE_CANT_READ = 14; | |
pub const GODOT_ERR_FILE_UNRECOGNIZED = 15; | |
pub const GODOT_ERR_FILE_CORRUPT = 16; | |
pub const GODOT_ERR_FILE_MISSING_DEPENDENCIES = 17; | |
pub const GODOT_ERR_FILE_EOF = 18; | |
pub const GODOT_ERR_CANT_OPEN = 19; | |
pub const GODOT_ERR_CANT_CREATE = 20; | |
pub const GODOT_ERR_QUERY_FAILED = 21; | |
pub const GODOT_ERR_ALREADY_IN_USE = 22; | |
pub const GODOT_ERR_LOCKED = 23; | |
pub const GODOT_ERR_TIMEOUT = 24; | |
pub const GODOT_ERR_CANT_CONNECT = 25; | |
pub const GODOT_ERR_CANT_RESOLVE = 26; | |
pub const GODOT_ERR_CONNECTION_ERROR = 27; | |
pub const GODOT_ERR_CANT_ACQUIRE_RESOURCE = 28; | |
pub const GODOT_ERR_CANT_FORK = 29; | |
pub const GODOT_ERR_INVALID_DATA = 30; | |
pub const GODOT_ERR_INVALID_PARAMETER = 31; | |
pub const GODOT_ERR_ALREADY_EXISTS = 32; | |
pub const GODOT_ERR_DOES_NOT_EXIST = 33; | |
pub const GODOT_ERR_DATABASE_CANT_READ = 34; | |
pub const GODOT_ERR_DATABASE_CANT_WRITE = 35; | |
pub const GODOT_ERR_COMPILATION_FAILED = 36; | |
pub const GODOT_ERR_METHOD_NOT_FOUND = 37; | |
pub const GODOT_ERR_LINK_FAILED = 38; | |
pub const GODOT_ERR_SCRIPT_FAILED = 39; | |
pub const GODOT_ERR_CYCLIC_LINK = 40; | |
pub const GODOT_ERR_INVALID_DECLARATION = 41; | |
pub const GODOT_ERR_DUPLICATE_SYMBOL = 42; | |
pub const GODOT_ERR_PARSE_ERROR = 43; | |
pub const GODOT_ERR_BUSY = 44; | |
pub const GODOT_ERR_SKIP = 45; | |
pub const GODOT_ERR_HELP = 46; | |
pub const GODOT_ERR_BUG = 47; | |
pub const GODOT_ERR_PRINTER_ON_FIRE = 48; | |
pub const godot_error = extern enum { | |
GODOT_OK = 0, | |
GODOT_FAILED = 1, | |
GODOT_ERR_UNAVAILABLE = 2, | |
GODOT_ERR_UNCONFIGURED = 3, | |
GODOT_ERR_UNAUTHORIZED = 4, | |
GODOT_ERR_PARAMETER_RANGE_ERROR = 5, | |
GODOT_ERR_OUT_OF_MEMORY = 6, | |
GODOT_ERR_FILE_NOT_FOUND = 7, | |
GODOT_ERR_FILE_BAD_DRIVE = 8, | |
GODOT_ERR_FILE_BAD_PATH = 9, | |
GODOT_ERR_FILE_NO_PERMISSION = 10, | |
GODOT_ERR_FILE_ALREADY_IN_USE = 11, | |
GODOT_ERR_FILE_CANT_OPEN = 12, | |
GODOT_ERR_FILE_CANT_WRITE = 13, | |
GODOT_ERR_FILE_CANT_READ = 14, | |
GODOT_ERR_FILE_UNRECOGNIZED = 15, | |
GODOT_ERR_FILE_CORRUPT = 16, | |
GODOT_ERR_FILE_MISSING_DEPENDENCIES = 17, | |
GODOT_ERR_FILE_EOF = 18, | |
GODOT_ERR_CANT_OPEN = 19, | |
GODOT_ERR_CANT_CREATE = 20, | |
GODOT_ERR_QUERY_FAILED = 21, | |
GODOT_ERR_ALREADY_IN_USE = 22, | |
GODOT_ERR_LOCKED = 23, | |
GODOT_ERR_TIMEOUT = 24, | |
GODOT_ERR_CANT_CONNECT = 25, | |
GODOT_ERR_CANT_RESOLVE = 26, | |
GODOT_ERR_CONNECTION_ERROR = 27, | |
GODOT_ERR_CANT_ACQUIRE_RESOURCE = 28, | |
GODOT_ERR_CANT_FORK = 29, | |
GODOT_ERR_INVALID_DATA = 30, | |
GODOT_ERR_INVALID_PARAMETER = 31, | |
GODOT_ERR_ALREADY_EXISTS = 32, | |
GODOT_ERR_DOES_NOT_EXIST = 33, | |
GODOT_ERR_DATABASE_CANT_READ = 34, | |
GODOT_ERR_DATABASE_CANT_WRITE = 35, | |
GODOT_ERR_COMPILATION_FAILED = 36, | |
GODOT_ERR_METHOD_NOT_FOUND = 37, | |
GODOT_ERR_LINK_FAILED = 38, | |
GODOT_ERR_SCRIPT_FAILED = 39, | |
GODOT_ERR_CYCLIC_LINK = 40, | |
GODOT_ERR_INVALID_DECLARATION = 41, | |
GODOT_ERR_DUPLICATE_SYMBOL = 42, | |
GODOT_ERR_PARSE_ERROR = 43, | |
GODOT_ERR_BUSY = 44, | |
GODOT_ERR_SKIP = 45, | |
GODOT_ERR_HELP = 46, | |
GODOT_ERR_BUG = 47, | |
GODOT_ERR_PRINTER_ON_FIRE = 48, | |
}; | |
pub const godot_bool = bool; | |
pub const godot_int = c_int; | |
pub const godot_real = f32; | |
pub const godot_object = c_void; | |
pub const _Float32 = f32; | |
pub const _Float64 = f64; | |
pub const _Float32x = f64; | |
pub const _Float64x = c_longdouble; | |
pub const wchar_t = c_int; | |
pub const struct___va_list_tag = extern struct { | |
gp_offset: c_uint, | |
fp_offset: c_uint, | |
overflow_arg_area: ?*c_void, | |
reg_save_area: ?*c_void, | |
}; | |
pub const __builtin_va_list = [1]struct___va_list_tag; | |
pub const va_list = __builtin_va_list; | |
pub const __gnuc_va_list = __builtin_va_list; | |
pub const wint_t = c_uint; | |
pub const __mbstate_t = extern struct { | |
__count: c_int, | |
__value: extern union { | |
__wch: c_uint, | |
__wchb: [4]u8, | |
}, | |
}; | |
pub const mbstate_t = __mbstate_t; | |
pub const struct__IO_FILE = @OpaqueType(); | |
pub const __FILE = struct__IO_FILE; | |
pub const FILE = struct__IO_FILE; | |
pub const struct___locale_data = @OpaqueType(); | |
pub const struct___locale_struct = extern struct { | |
__locales: [13](?*struct___locale_data), | |
__ctype_b: [*c]const c_ushort, | |
__ctype_tolower: [*c]const c_int, | |
__ctype_toupper: [*c]const c_int, | |
__names: [13]([*c]const u8), | |
}; | |
pub const __locale_t = [*c]struct___locale_struct; | |
pub const locale_t = __locale_t; | |
pub const struct_tm = @OpaqueType(); | |
pub extern fn wcscpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t) [*c]wchar_t; | |
pub extern fn wcsncpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t, __n: usize) [*c]wchar_t; | |
pub extern fn wcscat(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t) [*c]wchar_t; | |
pub extern fn wcsncat(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t, __n: usize) [*c]wchar_t; | |
pub extern fn wcscmp(__s1: [*c]const c_int, __s2: [*c]const c_int) c_int; | |
pub extern fn wcsncmp(__s1: [*c]const c_int, __s2: [*c]const c_int, __n: c_ulong) c_int; | |
pub extern fn wcscasecmp(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t) c_int; | |
pub extern fn wcsncasecmp(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __n: usize) c_int; | |
pub extern fn wcscasecmp_l(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __loc: locale_t) c_int; | |
pub extern fn wcsncasecmp_l(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __n: usize, __loc: locale_t) c_int; | |
pub extern fn wcscoll(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t) c_int; | |
pub extern fn wcsxfrm(noalias __s1: [*c]wchar_t, noalias __s2: [*c]const wchar_t, __n: usize) usize; | |
pub extern fn wcscoll_l(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __loc: locale_t) c_int; | |
pub extern fn wcsxfrm_l(__s1: [*c]wchar_t, __s2: [*c]const wchar_t, __n: usize, __loc: locale_t) usize; | |
pub extern fn wcsdup(__s: [*c]const wchar_t) [*c]wchar_t; | |
pub extern fn wcschr(__wcs: [*c]const c_int, __wc: c_int) [*c]c_int; | |
pub extern fn wcsrchr(__wcs: [*c]const wchar_t, __wc: wchar_t) [*c]wchar_t; | |
pub extern fn wcscspn(__wcs: [*c]const wchar_t, __reject: [*c]const wchar_t) usize; | |
pub extern fn wcsspn(__wcs: [*c]const wchar_t, __accept: [*c]const wchar_t) usize; | |
pub extern fn wcspbrk(__wcs: [*c]const wchar_t, __accept: [*c]const wchar_t) [*c]wchar_t; | |
pub extern fn wcsstr(__haystack: [*c]const wchar_t, __needle: [*c]const wchar_t) [*c]wchar_t; | |
pub extern fn wcstok(noalias __s: [*c]wchar_t, noalias __delim: [*c]const wchar_t, noalias __ptr: [*c]([*c]wchar_t)) [*c]wchar_t; | |
pub extern fn wcslen(__s: [*c]const c_int) c_ulong; | |
pub extern fn wcsnlen(__s: [*c]const wchar_t, __maxlen: usize) usize; | |
pub extern fn wmemchr(__s: [*c]const c_int, __c: c_int, __n: c_ulong) [*c]c_int; | |
pub extern fn wmemcmp(__s1: [*c]const c_int, __s2: [*c]const c_int, __n: c_ulong) c_int; | |
pub extern fn wmemcpy(__s1: [*c]c_int, __s2: [*c]const c_int, __n: c_ulong) [*c]c_int; | |
pub extern fn wmemmove(__s1: [*c]c_int, __s2: [*c]const c_int, __n: c_ulong) [*c]c_int; | |
pub extern fn wmemset(__s: [*c]wchar_t, __c: wchar_t, __n: usize) [*c]wchar_t; | |
pub extern fn btowc(__c: c_int) wint_t; | |
pub extern fn wctob(__c: wint_t) c_int; | |
pub extern fn mbsinit(__ps: [*c]const mbstate_t) c_int; | |
pub extern fn mbrtowc(noalias __pwc: [*c]wchar_t, noalias __s: [*c]const u8, __n: usize, noalias __p: [*c]mbstate_t) usize; | |
pub extern fn wcrtomb(noalias __s: [*c]u8, __wc: wchar_t, noalias __ps: [*c]mbstate_t) usize; | |
pub extern fn __mbrlen(noalias __s: [*c]const u8, __n: usize, noalias __ps: [*c]mbstate_t) usize; | |
pub extern fn mbrlen(noalias __s: [*c]const u8, __n: usize, noalias __ps: [*c]mbstate_t) usize; | |
pub extern fn mbsrtowcs(noalias __dst: [*c]wchar_t, noalias __src: [*c]([*c]const u8), __len: usize, noalias __ps: [*c]mbstate_t) usize; | |
pub extern fn wcsrtombs(noalias __dst: [*c]u8, noalias __src: [*c]([*c]const wchar_t), __len: usize, noalias __ps: [*c]mbstate_t) usize; | |
pub extern fn mbsnrtowcs(noalias __dst: [*c]wchar_t, noalias __src: [*c]([*c]const u8), __nmc: usize, __len: usize, noalias __ps: [*c]mbstate_t) usize; | |
pub extern fn wcsnrtombs(noalias __dst: [*c]u8, noalias __src: [*c]([*c]const wchar_t), __nwc: usize, __len: usize, noalias __ps: [*c]mbstate_t) usize; | |
pub extern fn wcstod(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c]([*c]wchar_t)) f64; | |
pub extern fn wcstof(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c]([*c]wchar_t)) f32; | |
pub extern fn wcstold(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c]([*c]wchar_t)) c_longdouble; | |
pub extern fn wcstol(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c]([*c]wchar_t), __base: c_int) c_long; | |
pub extern fn wcstoul(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c]([*c]wchar_t), __base: c_int) c_ulong; | |
pub extern fn wcstoll(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c]([*c]wchar_t), __base: c_int) c_longlong; | |
pub extern fn wcstoull(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c]([*c]wchar_t), __base: c_int) c_ulonglong; | |
pub extern fn wcpcpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t) [*c]wchar_t; | |
pub extern fn wcpncpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t, __n: usize) [*c]wchar_t; | |
pub extern fn open_wmemstream(__bufloc: [*c]([*c]wchar_t), __sizeloc: [*c]usize) ?*__FILE; | |
pub extern fn fwide(__fp: ?*__FILE, __mode: c_int) c_int; | |
pub extern fn fwprintf(noalias __stream: ?*__FILE, noalias __format: [*c]const wchar_t, ...) c_int; | |
pub extern fn wprintf(noalias __format: [*c]const wchar_t, ...) c_int; | |
pub extern fn swprintf(noalias __s: [*c]wchar_t, __n: usize, noalias __format: [*c]const wchar_t, ...) c_int; | |
pub extern fn vfwprintf(noalias __s: ?*__FILE, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag) c_int; | |
pub extern fn vwprintf(noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag) c_int; | |
pub extern fn vswprintf(noalias __s: [*c]wchar_t, __n: usize, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag) c_int; | |
pub extern fn fwscanf(noalias __stream: ?*__FILE, noalias __format: [*c]const wchar_t, ...) c_int; | |
pub extern fn wscanf(noalias __format: [*c]const wchar_t, ...) c_int; | |
pub extern fn swscanf(noalias __s: [*c]const wchar_t, noalias __format: [*c]const wchar_t, ...) c_int; | |
pub extern fn vfwscanf(noalias __s: ?*__FILE, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag) c_int; | |
pub extern fn vwscanf(noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag) c_int; | |
pub extern fn vswscanf(noalias __s: [*c]const wchar_t, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag) c_int; | |
pub extern fn fgetwc(__stream: ?*__FILE) wint_t; | |
pub extern fn getwc(__stream: ?*__FILE) wint_t; | |
pub extern fn getwchar() wint_t; | |
pub extern fn fputwc(__wc: wchar_t, __stream: ?*__FILE) wint_t; | |
pub extern fn putwc(__wc: wchar_t, __stream: ?*__FILE) wint_t; | |
pub extern fn putwchar(__wc: wchar_t) wint_t; | |
pub extern fn fgetws(noalias __ws: [*c]wchar_t, __n: c_int, noalias __stream: ?*__FILE) [*c]wchar_t; | |
pub extern fn fputws(noalias __ws: [*c]const wchar_t, noalias __stream: ?*__FILE) c_int; | |
pub extern fn ungetwc(__wc: wint_t, __stream: ?*__FILE) wint_t; | |
pub extern fn wcsftime(noalias __s: [*c]wchar_t, __maxsize: usize, noalias __format: [*c]const wchar_t, noalias __tp: ?*const struct_tm) usize; | |
pub const godot_char_type = wchar_t; | |
pub const godot_string = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_char_string = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_array = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_pool_array_read_access = extern struct { | |
_dont_touch_that: [1]u8, | |
}; | |
pub const godot_pool_byte_array_read_access = godot_pool_array_read_access; | |
pub const godot_pool_int_array_read_access = godot_pool_array_read_access; | |
pub const godot_pool_real_array_read_access = godot_pool_array_read_access; | |
pub const godot_pool_string_array_read_access = godot_pool_array_read_access; | |
pub const godot_pool_vector2_array_read_access = godot_pool_array_read_access; | |
pub const godot_pool_vector3_array_read_access = godot_pool_array_read_access; | |
pub const godot_pool_color_array_read_access = godot_pool_array_read_access; | |
pub const godot_pool_array_write_access = extern struct { | |
_dont_touch_that: [1]u8, | |
}; | |
pub const godot_pool_byte_array_write_access = godot_pool_array_write_access; | |
pub const godot_pool_int_array_write_access = godot_pool_array_write_access; | |
pub const godot_pool_real_array_write_access = godot_pool_array_write_access; | |
pub const godot_pool_string_array_write_access = godot_pool_array_write_access; | |
pub const godot_pool_vector2_array_write_access = godot_pool_array_write_access; | |
pub const godot_pool_vector3_array_write_access = godot_pool_array_write_access; | |
pub const godot_pool_color_array_write_access = godot_pool_array_write_access; | |
pub const godot_pool_byte_array = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_pool_int_array = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_pool_real_array = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_pool_string_array = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_pool_vector2_array = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_pool_vector3_array = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_pool_color_array = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_color = extern struct { | |
_dont_touch_that: [16]u8, | |
}; | |
pub extern fn godot_color_get_r(p_self: [*c]const godot_color) godot_real; | |
pub extern fn godot_color_set_r(p_self: [*c]godot_color, r: godot_real) void; | |
pub extern fn godot_color_get_g(p_self: [*c]const godot_color) godot_real; | |
pub extern fn godot_color_set_g(p_self: [*c]godot_color, g: godot_real) void; | |
pub extern fn godot_color_get_b(p_self: [*c]const godot_color) godot_real; | |
pub extern fn godot_color_set_b(p_self: [*c]godot_color, b: godot_real) void; | |
pub extern fn godot_color_get_a(p_self: [*c]const godot_color) godot_real; | |
pub extern fn godot_color_set_a(p_self: [*c]godot_color, a: godot_real) void; | |
pub extern fn godot_color_get_h(p_self: [*c]const godot_color) godot_real; | |
pub extern fn godot_color_get_s(p_self: [*c]const godot_color) godot_real; | |
pub extern fn godot_color_get_v(p_self: [*c]const godot_color) godot_real; | |
pub const godot_vector2 = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_vector3 = extern struct { | |
_dont_touch_that: [12]u8, | |
}; | |
pub const godot_basis = extern struct { | |
_dont_touch_that: [36]u8, | |
}; | |
pub const godot_quat = extern struct { | |
_dont_touch_that: [16]u8, | |
}; | |
pub const GODOT_VECTOR3_AXIS_X = 0; | |
pub const GODOT_VECTOR3_AXIS_Y = 1; | |
pub const GODOT_VECTOR3_AXIS_Z = 2; | |
pub const godot_vector3_axis = extern enum { | |
GODOT_VECTOR3_AXIS_X = 0, | |
GODOT_VECTOR3_AXIS_Y = 1, | |
GODOT_VECTOR3_AXIS_Z = 2, | |
}; | |
pub const godot_variant = extern struct { | |
_dont_touch_that: [24]u8, | |
}; | |
pub const GODOT_VARIANT_TYPE_NIL = enum_godot_variant_type.GODOT_VARIANT_TYPE_NIL; | |
pub const GODOT_VARIANT_TYPE_BOOL = enum_godot_variant_type.GODOT_VARIANT_TYPE_BOOL; | |
pub const GODOT_VARIANT_TYPE_INT = enum_godot_variant_type.GODOT_VARIANT_TYPE_INT; | |
pub const GODOT_VARIANT_TYPE_REAL = enum_godot_variant_type.GODOT_VARIANT_TYPE_REAL; | |
pub const GODOT_VARIANT_TYPE_STRING = enum_godot_variant_type.GODOT_VARIANT_TYPE_STRING; | |
pub const GODOT_VARIANT_TYPE_VECTOR2 = enum_godot_variant_type.GODOT_VARIANT_TYPE_VECTOR2; | |
pub const GODOT_VARIANT_TYPE_RECT2 = enum_godot_variant_type.GODOT_VARIANT_TYPE_RECT2; | |
pub const GODOT_VARIANT_TYPE_VECTOR3 = enum_godot_variant_type.GODOT_VARIANT_TYPE_VECTOR3; | |
pub const GODOT_VARIANT_TYPE_TRANSFORM2D = enum_godot_variant_type.GODOT_VARIANT_TYPE_TRANSFORM2D; | |
pub const GODOT_VARIANT_TYPE_PLANE = enum_godot_variant_type.GODOT_VARIANT_TYPE_PLANE; | |
pub const GODOT_VARIANT_TYPE_QUAT = enum_godot_variant_type.GODOT_VARIANT_TYPE_QUAT; | |
pub const GODOT_VARIANT_TYPE_AABB = enum_godot_variant_type.GODOT_VARIANT_TYPE_AABB; | |
pub const GODOT_VARIANT_TYPE_BASIS = enum_godot_variant_type.GODOT_VARIANT_TYPE_BASIS; | |
pub const GODOT_VARIANT_TYPE_TRANSFORM = enum_godot_variant_type.GODOT_VARIANT_TYPE_TRANSFORM; | |
pub const GODOT_VARIANT_TYPE_COLOR = enum_godot_variant_type.GODOT_VARIANT_TYPE_COLOR; | |
pub const GODOT_VARIANT_TYPE_NODE_PATH = enum_godot_variant_type.GODOT_VARIANT_TYPE_NODE_PATH; | |
pub const GODOT_VARIANT_TYPE_RID = enum_godot_variant_type.GODOT_VARIANT_TYPE_RID; | |
pub const GODOT_VARIANT_TYPE_OBJECT = enum_godot_variant_type.GODOT_VARIANT_TYPE_OBJECT; | |
pub const GODOT_VARIANT_TYPE_DICTIONARY = enum_godot_variant_type.GODOT_VARIANT_TYPE_DICTIONARY; | |
pub const GODOT_VARIANT_TYPE_ARRAY = enum_godot_variant_type.GODOT_VARIANT_TYPE_ARRAY; | |
pub const GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY = enum_godot_variant_type.GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY; | |
pub const GODOT_VARIANT_TYPE_POOL_INT_ARRAY = enum_godot_variant_type.GODOT_VARIANT_TYPE_POOL_INT_ARRAY; | |
pub const GODOT_VARIANT_TYPE_POOL_REAL_ARRAY = enum_godot_variant_type.GODOT_VARIANT_TYPE_POOL_REAL_ARRAY; | |
pub const GODOT_VARIANT_TYPE_POOL_STRING_ARRAY = enum_godot_variant_type.GODOT_VARIANT_TYPE_POOL_STRING_ARRAY; | |
pub const GODOT_VARIANT_TYPE_POOL_VECTOR2_ARRAY = enum_godot_variant_type.GODOT_VARIANT_TYPE_POOL_VECTOR2_ARRAY; | |
pub const GODOT_VARIANT_TYPE_POOL_VECTOR3_ARRAY = enum_godot_variant_type.GODOT_VARIANT_TYPE_POOL_VECTOR3_ARRAY; | |
pub const GODOT_VARIANT_TYPE_POOL_COLOR_ARRAY = enum_godot_variant_type.GODOT_VARIANT_TYPE_POOL_COLOR_ARRAY; | |
pub const enum_godot_variant_type = extern enum { | |
GODOT_VARIANT_TYPE_NIL, | |
GODOT_VARIANT_TYPE_BOOL, | |
GODOT_VARIANT_TYPE_INT, | |
GODOT_VARIANT_TYPE_REAL, | |
GODOT_VARIANT_TYPE_STRING, | |
GODOT_VARIANT_TYPE_VECTOR2, | |
GODOT_VARIANT_TYPE_RECT2, | |
GODOT_VARIANT_TYPE_VECTOR3, | |
GODOT_VARIANT_TYPE_TRANSFORM2D, | |
GODOT_VARIANT_TYPE_PLANE, | |
GODOT_VARIANT_TYPE_QUAT, | |
GODOT_VARIANT_TYPE_AABB, | |
GODOT_VARIANT_TYPE_BASIS, | |
GODOT_VARIANT_TYPE_TRANSFORM, | |
GODOT_VARIANT_TYPE_COLOR, | |
GODOT_VARIANT_TYPE_NODE_PATH, | |
GODOT_VARIANT_TYPE_RID, | |
GODOT_VARIANT_TYPE_OBJECT, | |
GODOT_VARIANT_TYPE_DICTIONARY, | |
GODOT_VARIANT_TYPE_ARRAY, | |
GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY, | |
GODOT_VARIANT_TYPE_POOL_INT_ARRAY, | |
GODOT_VARIANT_TYPE_POOL_REAL_ARRAY, | |
GODOT_VARIANT_TYPE_POOL_STRING_ARRAY, | |
GODOT_VARIANT_TYPE_POOL_VECTOR2_ARRAY, | |
GODOT_VARIANT_TYPE_POOL_VECTOR3_ARRAY, | |
GODOT_VARIANT_TYPE_POOL_COLOR_ARRAY, | |
}; | |
pub const godot_variant_type = enum_godot_variant_type; | |
pub const GODOT_CALL_ERROR_CALL_OK = enum_godot_variant_call_error_error.GODOT_CALL_ERROR_CALL_OK; | |
pub const GODOT_CALL_ERROR_CALL_ERROR_INVALID_METHOD = enum_godot_variant_call_error_error.GODOT_CALL_ERROR_CALL_ERROR_INVALID_METHOD; | |
pub const GODOT_CALL_ERROR_CALL_ERROR_INVALID_ARGUMENT = enum_godot_variant_call_error_error.GODOT_CALL_ERROR_CALL_ERROR_INVALID_ARGUMENT; | |
pub const GODOT_CALL_ERROR_CALL_ERROR_TOO_MANY_ARGUMENTS = enum_godot_variant_call_error_error.GODOT_CALL_ERROR_CALL_ERROR_TOO_MANY_ARGUMENTS; | |
pub const GODOT_CALL_ERROR_CALL_ERROR_TOO_FEW_ARGUMENTS = enum_godot_variant_call_error_error.GODOT_CALL_ERROR_CALL_ERROR_TOO_FEW_ARGUMENTS; | |
pub const GODOT_CALL_ERROR_CALL_ERROR_INSTANCE_IS_NULL = enum_godot_variant_call_error_error.GODOT_CALL_ERROR_CALL_ERROR_INSTANCE_IS_NULL; | |
pub const enum_godot_variant_call_error_error = extern enum { | |
GODOT_CALL_ERROR_CALL_OK, | |
GODOT_CALL_ERROR_CALL_ERROR_INVALID_METHOD, | |
GODOT_CALL_ERROR_CALL_ERROR_INVALID_ARGUMENT, | |
GODOT_CALL_ERROR_CALL_ERROR_TOO_MANY_ARGUMENTS, | |
GODOT_CALL_ERROR_CALL_ERROR_TOO_FEW_ARGUMENTS, | |
GODOT_CALL_ERROR_CALL_ERROR_INSTANCE_IS_NULL, | |
}; | |
pub const godot_variant_call_error_error = enum_godot_variant_call_error_error; | |
pub const struct_godot_variant_call_error = extern struct { | |
@"error": godot_variant_call_error_error, | |
argument: c_int, | |
expected: godot_variant_type, | |
}; | |
pub const godot_variant_call_error = struct_godot_variant_call_error; | |
pub const GODOT_VARIANT_OP_EQUAL = enum_godot_variant_operator.GODOT_VARIANT_OP_EQUAL; | |
pub const GODOT_VARIANT_OP_NOT_EQUAL = enum_godot_variant_operator.GODOT_VARIANT_OP_NOT_EQUAL; | |
pub const GODOT_VARIANT_OP_LESS = enum_godot_variant_operator.GODOT_VARIANT_OP_LESS; | |
pub const GODOT_VARIANT_OP_LESS_EQUAL = enum_godot_variant_operator.GODOT_VARIANT_OP_LESS_EQUAL; | |
pub const GODOT_VARIANT_OP_GREATER = enum_godot_variant_operator.GODOT_VARIANT_OP_GREATER; | |
pub const GODOT_VARIANT_OP_GREATER_EQUAL = enum_godot_variant_operator.GODOT_VARIANT_OP_GREATER_EQUAL; | |
pub const GODOT_VARIANT_OP_ADD = enum_godot_variant_operator.GODOT_VARIANT_OP_ADD; | |
pub const GODOT_VARIANT_OP_SUBTRACT = enum_godot_variant_operator.GODOT_VARIANT_OP_SUBTRACT; | |
pub const GODOT_VARIANT_OP_MULTIPLY = enum_godot_variant_operator.GODOT_VARIANT_OP_MULTIPLY; | |
pub const GODOT_VARIANT_OP_DIVIDE = enum_godot_variant_operator.GODOT_VARIANT_OP_DIVIDE; | |
pub const GODOT_VARIANT_OP_NEGATE = enum_godot_variant_operator.GODOT_VARIANT_OP_NEGATE; | |
pub const GODOT_VARIANT_OP_POSITIVE = enum_godot_variant_operator.GODOT_VARIANT_OP_POSITIVE; | |
pub const GODOT_VARIANT_OP_MODULE = enum_godot_variant_operator.GODOT_VARIANT_OP_MODULE; | |
pub const GODOT_VARIANT_OP_STRING_CONCAT = enum_godot_variant_operator.GODOT_VARIANT_OP_STRING_CONCAT; | |
pub const GODOT_VARIANT_OP_SHIFT_LEFT = enum_godot_variant_operator.GODOT_VARIANT_OP_SHIFT_LEFT; | |
pub const GODOT_VARIANT_OP_SHIFT_RIGHT = enum_godot_variant_operator.GODOT_VARIANT_OP_SHIFT_RIGHT; | |
pub const GODOT_VARIANT_OP_BIT_AND = enum_godot_variant_operator.GODOT_VARIANT_OP_BIT_AND; | |
pub const GODOT_VARIANT_OP_BIT_OR = enum_godot_variant_operator.GODOT_VARIANT_OP_BIT_OR; | |
pub const GODOT_VARIANT_OP_BIT_XOR = enum_godot_variant_operator.GODOT_VARIANT_OP_BIT_XOR; | |
pub const GODOT_VARIANT_OP_BIT_NEGATE = enum_godot_variant_operator.GODOT_VARIANT_OP_BIT_NEGATE; | |
pub const GODOT_VARIANT_OP_AND = enum_godot_variant_operator.GODOT_VARIANT_OP_AND; | |
pub const GODOT_VARIANT_OP_OR = enum_godot_variant_operator.GODOT_VARIANT_OP_OR; | |
pub const GODOT_VARIANT_OP_XOR = enum_godot_variant_operator.GODOT_VARIANT_OP_XOR; | |
pub const GODOT_VARIANT_OP_NOT = enum_godot_variant_operator.GODOT_VARIANT_OP_NOT; | |
pub const GODOT_VARIANT_OP_IN = enum_godot_variant_operator.GODOT_VARIANT_OP_IN; | |
pub const GODOT_VARIANT_OP_MAX = enum_godot_variant_operator.GODOT_VARIANT_OP_MAX; | |
pub const enum_godot_variant_operator = extern enum { | |
GODOT_VARIANT_OP_EQUAL, | |
GODOT_VARIANT_OP_NOT_EQUAL, | |
GODOT_VARIANT_OP_LESS, | |
GODOT_VARIANT_OP_LESS_EQUAL, | |
GODOT_VARIANT_OP_GREATER, | |
GODOT_VARIANT_OP_GREATER_EQUAL, | |
GODOT_VARIANT_OP_ADD, | |
GODOT_VARIANT_OP_SUBTRACT, | |
GODOT_VARIANT_OP_MULTIPLY, | |
GODOT_VARIANT_OP_DIVIDE, | |
GODOT_VARIANT_OP_NEGATE, | |
GODOT_VARIANT_OP_POSITIVE, | |
GODOT_VARIANT_OP_MODULE, | |
GODOT_VARIANT_OP_STRING_CONCAT, | |
GODOT_VARIANT_OP_SHIFT_LEFT, | |
GODOT_VARIANT_OP_SHIFT_RIGHT, | |
GODOT_VARIANT_OP_BIT_AND, | |
GODOT_VARIANT_OP_BIT_OR, | |
GODOT_VARIANT_OP_BIT_XOR, | |
GODOT_VARIANT_OP_BIT_NEGATE, | |
GODOT_VARIANT_OP_AND, | |
GODOT_VARIANT_OP_OR, | |
GODOT_VARIANT_OP_XOR, | |
GODOT_VARIANT_OP_NOT, | |
GODOT_VARIANT_OP_IN, | |
GODOT_VARIANT_OP_MAX, | |
}; | |
pub const godot_variant_operator = enum_godot_variant_operator; | |
pub const godot_aabb = extern struct { | |
_dont_touch_that: [24]u8, | |
}; | |
pub const godot_plane = extern struct { | |
_dont_touch_that: [16]u8, | |
}; | |
pub const godot_dictionary = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_node_path = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub extern fn godot_node_path_get_as_property_path(p_self: [*c]const godot_node_path) godot_node_path; | |
pub const struct_godot_rect2 = extern struct { | |
_dont_touch_that: [16]u8, | |
}; | |
pub const godot_rect2 = struct_godot_rect2; | |
pub const godot_rid = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_transform = extern struct { | |
_dont_touch_that: [48]u8, | |
}; | |
pub const godot_transform2d = extern struct { | |
_dont_touch_that: [24]u8, | |
}; | |
pub extern fn godot_string_empty(p_self: [*c]const godot_string) godot_bool; | |
pub const godot_string_name = extern struct { | |
_dont_touch_that: [8]u8, | |
}; | |
pub const godot_method_bind = extern struct { | |
_dont_touch_that: [1]u8, | |
}; | |
pub const struct_godot_gdnative_api_version = extern struct { | |
major: c_uint, | |
minor: c_uint, | |
}; | |
pub const godot_gdnative_api_version = struct_godot_gdnative_api_version; | |
pub const godot_gdnative_api_struct = struct_godot_gdnative_api_struct; | |
pub const struct_godot_gdnative_api_struct = extern struct { | |
type: c_uint, | |
version: godot_gdnative_api_version, | |
next: [*c]const godot_gdnative_api_struct, | |
}; | |
pub const struct_godot_gdnative_core_api_struct = @OpaqueType(); | |
pub const godot_gdnative_init_options = extern struct { | |
in_editor: godot_bool, | |
core_api_hash: u64, | |
editor_api_hash: u64, | |
no_api_hash: u64, | |
report_version_mismatch: ?extern fn (?*const godot_object, [*c]const u8, godot_gdnative_api_version, godot_gdnative_api_version) void, | |
report_loading_error: ?extern fn (?*const godot_object, [*c]const u8) void, | |
gd_native_library: ?*godot_object, | |
api_struct: ?*const struct_godot_gdnative_core_api_struct, | |
active_library_path: [*c]const godot_string, | |
}; | |
pub const godot_gdnative_terminate_options = extern struct { | |
in_editor: godot_bool, | |
}; | |
pub const godot_class_constructor = [*c]extern fn () ?*godot_object; | |
pub const godot_gdnative_init_fn = ?extern fn ([*c]godot_gdnative_init_options) void; | |
pub const godot_gdnative_terminate_fn = ?extern fn ([*c]godot_gdnative_terminate_options) void; | |
pub const godot_gdnative_procedure_fn = ?extern fn ([*c]godot_array) godot_variant; | |
pub const native_call_cb = ?extern fn (?*c_void, [*c]godot_array) godot_variant; | |
pub const __GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1; | |
pub const _STDC_PREDEF_H = 1; | |
pub const __GNUC_VA_LIST = 1; | |
pub const __BIGGEST_ALIGNMENT__ = 16; | |
pub const __SIZEOF_FLOAT__ = 4; | |
pub const __INT64_FMTd__ = c"ld"; | |
pub const __STDC_VERSION__ = @as(c_long, 201112); | |
pub const INT_FAST64_MAX = if (@typeId(@typeOf(9223372036854775807)) == @import("builtin").TypeId.Pointer) @ptrCast(__INT64_C, 9223372036854775807) else if (@typeId(@typeOf(9223372036854775807)) == @import("builtin").TypeId.Int) @intToPtr(__INT64_C, 9223372036854775807) else @as(__INT64_C, 9223372036854775807); | |
pub const __INT_LEAST32_FMTi__ = c"i"; | |
pub const __INT_LEAST8_FMTi__ = c"hhi"; | |
pub const __LDBL_EPSILON__ = 0.000000; | |
pub const __LZCNT__ = 1; | |
pub const __INT_LEAST32_FMTd__ = c"d"; | |
pub const __STDC_UTF_32__ = 1; | |
pub const __INVPCID__ = 1; | |
pub const __SIG_ATOMIC_WIDTH__ = 32; | |
pub const __UINT_FAST64_FMTX__ = c"lX"; | |
pub const __GCC_ATOMIC_LLONG_LOCK_FREE = 2; | |
pub const __SEG_FS = 1; | |
pub const __clang_version__ = c"9.0.0 (tags/RELEASE_900/final)"; | |
pub const __UINT_LEAST8_FMTo__ = c"hho"; | |
pub const __GCC_ASM_FLAG_OUTPUTS__ = 1; | |
pub const __SIZEOF_DOUBLE__ = 8; | |
pub const __INTMAX_FMTd__ = c"ld"; | |
pub const __HAVE_DISTINCT_FLOAT16 = __HAVE_FLOAT16; | |
pub const __CLANG_ATOMIC_CHAR_LOCK_FREE = 2; | |
pub const __INT_LEAST16_FMTi__ = c"hi"; | |
pub const __GCC_ATOMIC_SHORT_LOCK_FREE = 2; | |
pub const UINTMAX_MAX = if (@typeId(@typeOf(18446744073709551615)) == @import("builtin").TypeId.Pointer) @ptrCast(__UINT64_C, 18446744073709551615) else if (@typeId(@typeOf(18446744073709551615)) == @import("builtin").TypeId.Int) @intToPtr(__UINT64_C, 18446744073709551615) else @as(__UINT64_C, 18446744073709551615); | |
pub const __FMA__ = 1; | |
pub const INT_LEAST64_MAX = if (@typeId(@typeOf(9223372036854775807)) == @import("builtin").TypeId.Pointer) @ptrCast(__INT64_C, 9223372036854775807) else if (@typeId(@typeOf(9223372036854775807)) == @import("builtin").TypeId.Int) @intToPtr(__INT64_C, 9223372036854775807) else @as(__INT64_C, 9223372036854775807); | |
pub const WINT_MIN = @as(c_uint, 0); | |
pub const __MMX__ = 1; | |
pub const __HAVE_FLOAT64 = 1; | |
pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1; | |
pub const INTPTR_MAX = @as(c_long, 9223372036854775807); | |
pub const __SIZE_FMTX__ = c"lX"; | |
pub const __ID_T_TYPE = __U32_TYPE; | |
pub const __RDSEED__ = 1; | |
pub const __INO_T_TYPE = __SYSCALL_ULONG_TYPE; | |
pub const _BITS_TYPES_H = 1; | |
pub const GODOT_TRUE = 1; | |
pub const __FSBLKCNT_T_TYPE = __SYSCALL_ULONG_TYPE; | |
pub const __ptr_t = [*c]void; | |
pub const __WCHAR_WIDTH__ = 32; | |
pub const __FSGSBASE__ = 1; | |
pub const __STDC_IEC_559_COMPLEX__ = 1; | |
pub const __USE_MISC = 1; | |
pub const __FSBLKCNT64_T_TYPE = __UQUAD_TYPE; | |
pub const __PTRDIFF_FMTd__ = c"ld"; | |
pub const __DBL_MIN_EXP__ = -1021; | |
pub const __HAVE_FLOAT32X = 1; | |
pub const __FLT_EVAL_METHOD__ = 0; | |
pub const __USECONDS_T_TYPE = __U32_TYPE; | |
pub const __SSE_MATH__ = 1; | |
pub const __PID_T_TYPE = __S32_TYPE; | |
pub const __UINT_FAST8_FMTo__ = c"hho"; | |
pub const __UINT_LEAST64_MAX__ = @as(c_ulong, 18446744073709551615); | |
pub const __UINT_LEAST64_FMTx__ = c"lx"; | |
pub const __INT8_MAX__ = 127; | |
pub const __NLINK_T_TYPE = __SYSCALL_ULONG_TYPE; | |
pub const __DBL_HAS_DENORM__ = 1; | |
pub const __FLOAT128__ = 1; | |
pub const __HAVE_GENERIC_SELECTION = 1; | |
pub const __ATOMIC_RELAXED = 0; | |
pub const __DBL_DECIMAL_DIG__ = 17; | |
pub const __XSAVEC__ = 1; | |
pub const __SIZEOF_SHORT__ = 2; | |
pub const ____FILE_defined = 1; | |
pub const GODOT_POOL_ARRAY_READ_ACCESS_SIZE = 1; | |
pub const __UINT_FAST16_MAX__ = 65535; | |
pub const __UINT16_FMTX__ = c"hX"; | |
pub const __CLANG_ATOMIC_SHORT_LOCK_FREE = 2; | |
pub const __SSSE3__ = 1; | |
pub const __CONSTANT_CFSTRINGS__ = 1; | |
pub const __MODE_T_TYPE = __U32_TYPE; | |
pub const _SYS_CDEFS_H = 1; | |
pub const _ATFILE_SOURCE = 1; | |
pub const PTRDIFF_MAX = @as(c_long, 9223372036854775807); | |
pub const GODOT_VECTOR3_SIZE = 12; | |
pub const __AVX2__ = 1; | |
pub const __RLIM_T_TYPE = __SYSCALL_ULONG_TYPE; | |
pub const __LDBL_MAX_EXP__ = 16384; | |
pub const __WINT_MAX__ = @as(c_uint, 4294967295); | |
pub const __USE_POSIX199309 = 1; | |
pub const __glibc_has_include = __has_include; | |
pub const __STDC_ISO_10646__ = @as(c_long, 201706); | |
pub const __NO_MATH_INLINES = 1; | |
pub const __WCHAR_TYPE__ = int; | |
pub const __BLKCNT64_T_TYPE = __SQUAD_TYPE; | |
pub const __LONG_MAX__ = @as(c_long, 9223372036854775807); | |
pub const __STDC_HOSTED__ = 1; | |
pub const __pic__ = 2; | |
pub const __WCHAR_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-__WCHAR_MAX, -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-__WCHAR_MAX, -1) else @as(-__WCHAR_MAX, -1); | |
pub const __PTRDIFF_WIDTH__ = 64; | |
pub const __INT_FAST16_FMTi__ = c"hi"; | |
pub const __INT_LEAST32_TYPE__ = int; | |
pub const __SCHAR_MAX__ = 127; | |
pub const __USE_POSIX2 = 1; | |
pub const __LDBL_DENORM_MIN__ = 0.000000; | |
pub const __HAVE_FLOATN_NOT_TYPEDEF = 0; | |
pub const __TIMESIZE = __WORDSIZE; | |
pub const __USE_XOPEN2K = 1; | |
pub const __PRFCHW__ = 1; | |
pub const __USE_FORTIFY_LEVEL = 0; | |
pub const __ELF__ = 1; | |
pub const __INT64_C_SUFFIX__ = L; | |
pub const __FSFILCNT_T_TYPE = __SYSCALL_ULONG_TYPE; | |
pub const __LDBL_MANT_DIG__ = 64; | |
pub const __SSIZE_T_TYPE = __SWORD_TYPE; | |
pub const __USE_XOPEN2K8 = 1; | |
pub const __CLANG_ATOMIC_INT_LOCK_FREE = 2; | |
pub const __SIZEOF_PTRDIFF_T__ = 8; | |
pub const INT16_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-32767, -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-32767, -1) else @as(-32767, -1); | |
pub const __SIG_ATOMIC_MAX__ = 2147483647; | |
pub const __USE_ATFILE = 1; | |
pub const __UINT64_FMTX__ = c"lX"; | |
pub const __UINT64_MAX__ = @as(c_ulong, 18446744073709551615); | |
pub const __DBL_MANT_DIG__ = 53; | |
pub const __FLT_DECIMAL_DIG__ = 9; | |
pub const __INT_LEAST32_MAX__ = 2147483647; | |
pub const __DBL_DIG__ = 15; | |
pub const __GLIBC_USE_DEPRECATED_SCANF = 0; | |
pub const GODOT_POOL_ARRAY_WRITE_ACCESS_SIZE = 1; | |
pub const __ATOMIC_ACQUIRE = 2; | |
pub const __OPENCL_MEMORY_SCOPE_WORK_GROUP = 1; | |
pub const __USE_ISOC95 = 1; | |
pub const __UID_T_TYPE = __U32_TYPE; | |
pub const __UINT_FAST16_FMTu__ = c"hu"; | |
pub const __INTPTR_FMTi__ = c"li"; | |
pub const _BITS_WCHAR_H = 1; | |
pub const __UINT_FAST8_FMTX__ = c"hhX"; | |
pub const __LITTLE_ENDIAN__ = 1; | |
pub const __SSE__ = 1; | |
pub const __FLT_HAS_QUIET_NAN__ = 1; | |
pub const __SIZEOF_SIZE_T__ = 8; | |
pub const __SEG_GS = 1; | |
pub const __UINT_LEAST16_FMTo__ = c"ho"; | |
pub const __UINT8_FMTo__ = c"hho"; | |
pub const UINT_LEAST64_MAX = if (@typeId(@typeOf(18446744073709551615)) == @import("builtin").TypeId.Pointer) @ptrCast(__UINT64_C, 18446744073709551615) else if (@typeId(@typeOf(18446744073709551615)) == @import("builtin").TypeId.Int) @intToPtr(__UINT64_C, 18446744073709551615) else @as(__UINT64_C, 18446744073709551615); | |
pub const __HAVE_FLOAT32 = 1; | |
pub const __UINT_LEAST16_FMTx__ = c"hx"; | |
pub const __CLANG_ATOMIC_WCHAR_T_LOCK_FREE = 2; | |
pub const __UINT_FAST16_FMTX__ = c"hX"; | |
pub const __VERSION__ = c"Clang 9.0.0 (tags/RELEASE_900/final)"; | |
pub const __UINT_FAST32_FMTx__ = c"x"; | |
pub const __UINTPTR_MAX__ = @as(c_ulong, 18446744073709551615); | |
pub const WEOF = @as(c_uint, 4294967295); | |
pub const __UINT_FAST8_FMTu__ = c"hhu"; | |
pub const UINT16_MAX = 65535; | |
pub const __UINT_LEAST8_FMTu__ = c"hhu"; | |
pub const __UINT_LEAST64_FMTo__ = c"lo"; | |
pub const __UINT_LEAST8_MAX__ = 255; | |
pub const UINT8_MAX = 255; | |
pub const __SYSCALL_ULONG_TYPE = __ULONGWORD_TYPE; | |
pub const __warnattr = msg; | |
pub const __RDRND__ = 1; | |
pub const __STD_TYPE = typedef; | |
pub const __bool_true_false_are_defined = 1; | |
pub const __SIZEOF_WCHAR_T__ = 4; | |
pub const __MOVBE__ = 1; | |
pub const __GLIBC_USE_DEPRECATED_GETS = 0; | |
pub const __LDBL_MAX__ = inf; | |
pub const GODOT_COLOR_SIZE = 16; | |
pub const __UINT16_MAX__ = 65535; | |
pub const _LP64 = 1; | |
pub const __CLOCK_T_TYPE = __SYSCALL_SLONG_TYPE; | |
pub const __x86_64 = 1; | |
pub const __code_model_small_ = 1; | |
pub const linux = 1; | |
pub const __SIZEOF_WINT_T__ = 4; | |
pub const __UINTMAX_FMTo__ = c"lo"; | |
pub const __FLT_DIG__ = 6; | |
pub const __UINT_LEAST8_FMTX__ = c"hhX"; | |
pub const __INT16_MAX__ = 32767; | |
pub const __HAVE_FLOAT64X = 1; | |
pub const __WINT_UNSIGNED__ = 1; | |
pub const __HAVE_FLOAT16 = 0; | |
pub const __FLT_MAX_10_EXP__ = 38; | |
pub const _FEATURES_H = 1; | |
pub const __UINTPTR_FMTX__ = c"lX"; | |
pub const __UINT_LEAST16_FMTu__ = c"hu"; | |
pub const __CLANG_ATOMIC_POINTER_LOCK_FREE = 2; | |
pub const SIG_ATOMIC_MAX = 2147483647; | |
pub const __WINT_WIDTH__ = 32; | |
pub const __F16C__ = 1; | |
pub const __SHRT_MAX__ = 32767; | |
pub const __GCC_ATOMIC_BOOL_LOCK_FREE = 2; | |
pub const __POINTER_WIDTH__ = 64; | |
pub const PTRDIFF_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-@as(c_long, 9223372036854775807), -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-@as(c_long, 9223372036854775807), -1) else @as(-@as(c_long, 9223372036854775807), -1); | |
pub const __PTRDIFF_MAX__ = @as(c_long, 9223372036854775807); | |
pub const __tune_corei7__ = 1; | |
pub const __INT32_FMTd__ = c"d"; | |
pub const __DBL_MIN__ = 0.000000; | |
pub const __SIZEOF_LONG__ = 8; | |
pub const __S32_TYPE = int; | |
pub const __TIME_T_TYPE = __SYSCALL_SLONG_TYPE; | |
pub const __INTPTR_WIDTH__ = 64; | |
pub const __INT_FAST32_TYPE__ = int; | |
pub const __TIME64_T_TYPE = __TIME_T_TYPE; | |
pub const @"false" = 0; | |
pub const __NO_INLINE__ = 1; | |
pub const __UINT_FAST32_FMTX__ = c"X"; | |
pub const _POSIX_SOURCE = 1; | |
pub const __HAVE_FLOAT128 = 0; | |
pub const __gnu_linux__ = 1; | |
pub const __INT_FAST32_MAX__ = 2147483647; | |
pub const __corei7__ = 1; | |
pub const __UINTMAX_FMTu__ = c"lu"; | |
pub const __BMI__ = 1; | |
pub const __FILE_defined = 1; | |
pub const INT_FAST8_MAX = 127; | |
pub const __FLT_RADIX__ = 2; | |
pub const __GLIBC_MINOR__ = 30; | |
pub const _STDINT_H = 1; | |
pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1; | |
pub const INT_FAST8_MIN = -128; | |
pub const __GCC_ATOMIC_INT_LOCK_FREE = 2; | |
pub const __SGX__ = 1; | |
pub const __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES = 3; | |
pub const _BITS_STDINT_INTN_H = 1; | |
pub const __PRAGMA_REDEFINE_EXTNAME = 1; | |
pub const __INT_FAST8_FMTd__ = c"hhd"; | |
pub const __KEY_T_TYPE = __S32_TYPE; | |
pub const __INT32_TYPE__ = int; | |
pub const __USE_POSIX199506 = 1; | |
pub const __CPU_MASK_TYPE = __SYSCALL_ULONG_TYPE; | |
pub const GODOT_API_VERSION = 1; | |
pub const __UINTMAX_WIDTH__ = 64; | |
pub const __FLT_MIN__ = 0.000000; | |
pub const __INT64_FMTi__ = c"li"; | |
pub const __UINT_FAST64_FMTu__ = c"lu"; | |
pub const __INT8_FMTd__ = c"hhd"; | |
pub const INT_LEAST16_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-32767, -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-32767, -1) else @as(-32767, -1); | |
pub const __INT_FAST16_TYPE__ = short; | |
pub const __HAVE_DISTINCT_FLOAT128 = 0; | |
pub const INT64_MAX = if (@typeId(@typeOf(9223372036854775807)) == @import("builtin").TypeId.Pointer) @ptrCast(__INT64_C, 9223372036854775807) else if (@typeId(@typeOf(9223372036854775807)) == @import("builtin").TypeId.Int) @intToPtr(__INT64_C, 9223372036854775807) else @as(__INT64_C, 9223372036854775807); | |
pub const __FLT_MAX_EXP__ = 128; | |
pub const __XSAVE__ = 1; | |
pub const __DBL_MAX_10_EXP__ = 308; | |
pub const __LDBL_MIN__ = 0.000000; | |
pub const __INT_FAST64_FMTi__ = c"li"; | |
pub const __INT_LEAST8_FMTd__ = c"hhd"; | |
pub const __CLANG_ATOMIC_LLONG_LOCK_FREE = 2; | |
pub const __FSFILCNT64_T_TYPE = __UQUAD_TYPE; | |
pub const __UINT_LEAST32_FMTX__ = c"X"; | |
pub const __GID_T_TYPE = __U32_TYPE; | |
pub const __PIC__ = 2; | |
pub const __UINTMAX_MAX__ = @as(c_ulong, 18446744073709551615); | |
pub const GODOT_QUAT_SIZE = 16; | |
pub const _WINT_T = 1; | |
pub const __UINT_FAST16_FMTo__ = c"ho"; | |
pub const _DEFAULT_SOURCE = 1; | |
pub const __FD_SETSIZE = 1024; | |
pub const __LDBL_DECIMAL_DIG__ = 21; | |
pub const __UINT_LEAST64_FMTX__ = c"lX"; | |
pub const __clang_minor__ = 0; | |
pub const __LDBL_REDIR_DECL = name; | |
pub const INTMAX_MAX = if (@typeId(@typeOf(9223372036854775807)) == @import("builtin").TypeId.Pointer) @ptrCast(__INT64_C, 9223372036854775807) else if (@typeId(@typeOf(9223372036854775807)) == @import("builtin").TypeId.Int) @intToPtr(__INT64_C, 9223372036854775807) else @as(__INT64_C, 9223372036854775807); | |
pub const __OFF64_T_TYPE = __SQUAD_TYPE; | |
pub const __SIZEOF_FLOAT128__ = 16; | |
pub const __CLOCKID_T_TYPE = __S32_TYPE; | |
pub const __UINT_FAST64_FMTo__ = c"lo"; | |
pub const __SIZE_FMTx__ = c"lx"; | |
pub const INT_FAST16_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-@as(c_long, 9223372036854775807), -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-@as(c_long, 9223372036854775807), -1) else @as(-@as(c_long, 9223372036854775807), -1); | |
pub const __DBL_MAX__ = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878; | |
pub const __DBL_EPSILON__ = 0.000000; | |
pub const __UINT64_FMTx__ = c"lx"; | |
pub const @"true" = 1; | |
pub const INT_FAST32_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-@as(c_long, 9223372036854775807), -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-@as(c_long, 9223372036854775807), -1) else @as(-@as(c_long, 9223372036854775807), -1); | |
pub const GODOT_FALSE = 0; | |
pub const INT32_MAX = 2147483647; | |
pub const __BLKCNT_T_TYPE = __SYSCALL_SLONG_TYPE; | |
pub const __CHAR_BIT__ = 8; | |
pub const __INT16_FMTi__ = c"hi"; | |
pub const __SLONG32_TYPE = int; | |
pub const _DEBUG = 1; | |
pub const __GNUC_MINOR__ = 2; | |
pub const INT_LEAST32_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-2147483647, -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-2147483647, -1) else @as(-2147483647, -1); | |
pub const INT32_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-2147483647, -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-2147483647, -1) else @as(-2147483647, -1); | |
pub const __restrict_arr = __restrict; | |
pub const __UINT_FAST32_MAX__ = @as(c_uint, 4294967295); | |
pub const __RLIM_T_MATCHES_RLIM64_T = 1; | |
pub const __UINT8_FMTX__ = c"hhX"; | |
pub const __FLT_EPSILON__ = 0.000000; | |
pub const INT_FAST32_MAX = @as(c_long, 9223372036854775807); | |
pub const UINT_FAST8_MAX = 255; | |
pub const __UINTPTR_WIDTH__ = 64; | |
pub const __llvm__ = 1; | |
pub const __UINT_FAST64_MAX__ = @as(c_ulong, 18446744073709551615); | |
pub const __INT_FAST32_FMTi__ = c"i"; | |
pub const INT16_MAX = 32767; | |
pub const __FLT_HAS_INFINITY__ = 1; | |
pub const __FSWORD_T_TYPE = __SYSCALL_SLONG_TYPE; | |
pub const __DADDR_T_TYPE = __S32_TYPE; | |
pub const __AES__ = 1; | |
pub const __OFF_T_TYPE = __SYSCALL_SLONG_TYPE; | |
pub const NULL = if (@typeId(@typeOf(0)) == @import("builtin").TypeId.Pointer) @ptrCast([*c]void, 0) else if (@typeId(@typeOf(0)) == @import("builtin").TypeId.Int) @intToPtr([*c]void, 0) else @as([*c]void, 0); | |
pub const __UINT8_FMTx__ = c"hhx"; | |
pub const __INTMAX_C_SUFFIX__ = L; | |
pub const __ORDER_LITTLE_ENDIAN__ = 1234; | |
pub const __GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2; | |
pub const __INT16_FMTd__ = c"hd"; | |
pub const __UINT32_FMTX__ = c"X"; | |
pub const __SUSECONDS_T_TYPE = __SYSCALL_SLONG_TYPE; | |
pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1; | |
pub const UINT_LEAST8_MAX = 255; | |
pub const __UINT32_C_SUFFIX__ = U; | |
pub const __INT32_MAX__ = 2147483647; | |
pub const __GCC_ATOMIC_CHAR_LOCK_FREE = 2; | |
pub const __INTMAX_WIDTH__ = 64; | |
pub const __INO64_T_TYPE = __UQUAD_TYPE; | |
pub const __CLANG_ATOMIC_BOOL_LOCK_FREE = 2; | |
pub const __USE_POSIX = 1; | |
pub const __SIZE_FMTo__ = c"lo"; | |
pub const __DBL_HAS_QUIET_NAN__ = 1; | |
pub const __INT_FAST8_FMTi__ = c"hhi"; | |
pub const __UINT_LEAST32_FMTo__ = c"o"; | |
pub const __STDC_UTF_16__ = 1; | |
pub const __UINT_LEAST32_MAX__ = @as(c_uint, 4294967295); | |
pub const __ATOMIC_RELEASE = 3; | |
pub const __UINT_FAST16_FMTx__ = c"hx"; | |
pub const __UINTMAX_C_SUFFIX__ = UL; | |
pub const __WCHAR_MAX = __WCHAR_MAX__; | |
pub const __FLT_MIN_EXP__ = -125; | |
pub const __SIZEOF_LONG_DOUBLE__ = 16; | |
pub const __UINT_LEAST64_FMTu__ = c"lu"; | |
pub const __GCC_ATOMIC_LONG_LOCK_FREE = 2; | |
pub const __ORDER_PDP_ENDIAN__ = 3412; | |
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT = 0; | |
pub const __INT_FAST64_FMTd__ = c"ld"; | |
pub const INT_LEAST8_MIN = -128; | |
pub const __CLANG_ATOMIC_LONG_LOCK_FREE = 2; | |
pub const __GXX_ABI_VERSION = 1002; | |
pub const __INT16_TYPE__ = short; | |
pub const GDAPI = GDCALLINGCONV; | |
pub const __SSE2_MATH__ = 1; | |
pub const INTPTR_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-@as(c_long, 9223372036854775807), -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-@as(c_long, 9223372036854775807), -1) else @as(-@as(c_long, 9223372036854775807), -1); | |
pub const __FLT_MANT_DIG__ = 24; | |
pub const UINT_LEAST16_MAX = 65535; | |
pub const __GLIBC_USE_IEC_60559_TYPES_EXT = 0; | |
pub const UINT_LEAST32_MAX = @as(c_uint, 4294967295); | |
pub const __UINT_FAST64_FMTx__ = c"lx"; | |
pub const __STDC__ = 1; | |
pub const __HAVE_FLOAT64X_LONG_DOUBLE = 1; | |
pub const __INT_FAST8_MAX__ = 127; | |
pub const __INTPTR_FMTd__ = c"ld"; | |
pub const __GNUC_PATCHLEVEL__ = 1; | |
pub const GODOT_BASIS_SIZE = 36; | |
pub const __UINT_LEAST8_FMTx__ = c"hhx"; | |
pub const __SIZE_WIDTH__ = 64; | |
pub const __MPX__ = 1; | |
pub const __INT_LEAST64_FMTi__ = c"li"; | |
pub const __HAVE_DISTINCT_FLOAT64 = 0; | |
pub const __SSE4_2__ = 1; | |
pub const __STDC_IEC_559__ = 1; | |
pub const __AVX__ = 1; | |
pub const __INT_FAST16_MAX__ = 32767; | |
pub const __USE_ISOC99 = 1; | |
pub const __INTPTR_MAX__ = @as(c_long, 9223372036854775807); | |
pub const __CLANG_ATOMIC_CHAR16_T_LOCK_FREE = 2; | |
pub const __UINT64_FMTu__ = c"lu"; | |
pub const __BYTE_ORDER__ = __ORDER_LITTLE_ENDIAN__; | |
pub const __SSE2__ = 1; | |
pub const __INT_MAX__ = 2147483647; | |
pub const __BLKSIZE_T_TYPE = __SYSCALL_SLONG_TYPE; | |
pub const __INTMAX_FMTi__ = c"li"; | |
pub const __DBL_DENORM_MIN__ = 0.000000; | |
pub const __clang_major__ = 9; | |
pub const __GNUC__ = 4; | |
pub const __UINT32_MAX__ = @as(c_uint, 4294967295); | |
pub const UINTPTR_MAX = @as(c_ulong, 18446744073709551615); | |
pub const _BITS_TYPES___LOCALE_T_H = 1; | |
pub const _POSIX_C_SOURCE = @as(c_long, 200809); | |
pub const __FLT_DENORM_MIN__ = 0.000000; | |
pub const __DBL_MAX_EXP__ = 1024; | |
pub const __INT8_FMTi__ = c"hhi"; | |
pub const __UINT_LEAST16_MAX__ = 65535; | |
pub const SIG_ATOMIC_MIN = if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Pointer) @ptrCast(-2147483647, -1) else if (@typeId(@typeOf(-1)) == @import("builtin").TypeId.Int) @intToPtr(-2147483647, -1) else @as(-2147483647, -1); | |
pub const __HAVE_DISTINCT_FLOAT32X = 0; | |
pub const __XSAVES__ = 1; | |
pub const __LDBL_HAS_DENORM__ = 1; | |
pub const __LDBL_HAS_QUIET_NAN__ = 1; | |
pub const __UINT_FAST8_MAX__ = 255; | |
pub const __DBL_MIN_10_EXP__ = -307; | |
pub const __GLIBC_USE_LIB_EXT2 = 0; | |
pub const GODOT_TRANSFORM2D_SIZE = 24; | |
pub const __UINT8_FMTu__ = c"hhu"; | |
pub const __OFF_T_MATCHES_OFF64_T = 1; | |
pub const WINT_MAX = @as(c_uint, 4294967295); | |
pub const __RLIM64_T_TYPE = __UQUAD_TYPE; | |
pub const UINT_FAST16_MAX = @as(c_ulong, 18446744073709551615); | |
pub const __HAVE_FLOAT128X = 0; | |
pub const __INT_FAST64_MAX__ = @as(c_long, 9223372036854775807); | |
pub const __SSE3__ = 1; | |
pub const __UINT16_FMTu__ = c"hu"; | |
pub const __ATOMIC_SEQ_CST = 5; | |
pub const __SIZE_FMTu__ = c"lu"; | |
pub const __LDBL_MIN_EXP__ = -16381; | |
pub const __UINT_FAST32_FMTu__ = c"u"; | |
pub const SIZE_MAX = @as(c_ulong, 18446744073709551615); | |
pub const __SSP_STRONG__ = 2; | |
pub const __clang_patchlevel__ = 0; | |
pub const __SIZEOF_LONG_LONG__ = 8; | |
pub const __BMI2__ = 1; | |
pub const __HAVE_DISTINCT_FLOAT64X = 0; | |
pub const __GNUC_STDC_INLINE__ = 1; | |
pub const __PCLMUL__ = 1; | |
pub const __FXSR__ = 1; | |
pub const __UINT8_MAX__ = 255; | |
pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1; | |
pub const __UINT32_FMTx__ = c"x"; | |
pub const __UINT16_FMTo__ = c"ho"; | |
pub const __POPCNT__ = 1; | |
pub const __OPENCL_MEMORY_SCOPE_DEVICE = 2; | |
pub const INT_LEAST8_MAX = 127; | |
pub const __UINT32_FMTu__ = c"u"; | |
pub const __SIZEOF_POINTER__ = 8; | |
pub const __TIMER_T_TYPE = [*c]void; | |
pub const __SIZE_MAX__ = @as(c_ulong, 18446744073709551615); | |
pub const __unix = 1; | |
pub const __GLIBC_USE_IEC_60559_BFP_EXT = 0; | |
pub const __INT_FAST16_FMTd__ = c"hd"; | |
pub const unix = 1; | |
pub const __UINT_LEAST32_FMTu__ = c"u"; | |
pub const __FLT_MAX__ = 340282346999999984391321947108527833088.000000; | |
pub const __corei7 = 1; | |
pub const __HAVE_DISTINCT_FLOAT32 = 0; | |
pub const __USE_ISOC11 = 1; | |
pub const __GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2; | |
pub const __ATOMIC_CONSUME = 1; | |
pub const __unix__ = 1; | |
pub const UINT32_MAX = @as(c_uint, 4294967295); | |
pub const __x86_64__ = 1; | |
pub const __LDBL_HAS_INFINITY__ = 1; | |
pub const __WORDSIZE_TIME64_COMPAT32 = 1; | |
pub const GODOT_VECTOR2_SIZE = 8; | |
pub const __UINT64_C_SUFFIX__ = UL; | |
pub const __GNU_LIBRARY__ = 6; | |
pub const __UINTMAX_FMTx__ = c"lx"; | |
pub const __INT_LEAST16_MAX__ = 32767; | |
pub const __FLT_MIN_10_EXP__ = -37; | |
pub const __UINT32_FMTo__ = c"o"; | |
pub const __UINTPTR_FMTo__ = c"lo"; | |
pub const __INT_LEAST16_FMTd__ = c"hd"; | |
pub const __UINTPTR_FMTx__ = c"lx"; | |
pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1; | |
pub const __INT_LEAST64_FMTd__ = c"ld"; | |
pub const UINT64_MAX = if (@typeId(@typeOf(18446744073709551615)) == @import("builtin").TypeId.Pointer) @ptrCast(__UINT64_C, 18446744073709551615) else if (@typeId(@typeOf(18446744073709551615)) == @import("builtin").TypeId.Int) @intToPtr(__UINT64_C, 18446744073709551615) else @as(__UINT64_C, 18446744073709551615); | |
pub const __INT_LEAST16_TYPE__ = short; | |
pub const __attribute_alloc_size__ = params; | |
pub const __attribute_copy__ = arg; | |
pub const __ORDER_BIG_ENDIAN__ = 4321; | |
pub const __LDBL_MIN_10_EXP__ = -4931; | |
pub const __INT_LEAST8_MAX__ = 127; | |
pub const __SIZEOF_INT__ = 4; | |
pub const GODOT_PLANE_SIZE = 16; | |
pub const __USE_POSIX_IMPLICITLY = 1; | |
pub const __GCC_ATOMIC_POINTER_LOCK_FREE = 2; | |
pub const INT8_MIN = -128; | |
pub const WCHAR_MAX = __WCHAR_MAX; | |
pub const __amd64 = 1; | |
pub const _BITS_TIME64_H = 1; | |
pub const INT8_MAX = 127; | |
pub const __ADX__ = 1; | |
pub const __OBJC_BOOL_IS_BOOL = 0; | |
pub const __LDBL_MAX_10_EXP__ = 4932; | |
pub const __SIZEOF_INT128__ = 16; | |
pub const __UINT_FAST8_FMTx__ = c"hhx"; | |
pub const UINT_FAST32_MAX = @as(c_ulong, 18446744073709551615); | |
pub const __glibc_c99_flexarr_available = 1; | |
pub const __linux = 1; | |
pub const __UINT16_FMTx__ = c"hx"; | |
pub const __UINTPTR_FMTu__ = c"lu"; | |
pub const __UINT_LEAST16_FMTX__ = c"hX"; | |
pub const __CLFLUSHOPT__ = 1; | |
pub const WCHAR_MIN = __WCHAR_MIN; | |
pub const __amd64__ = 1; | |
pub const __UINT_FAST32_FMTo__ = c"o"; | |
pub const __linux__ = 1; | |
pub const __clang__ = 1; | |
pub const __LP64__ = 1; | |
pub const INT_FAST16_MAX = @as(c_long, 9223372036854775807); | |
pub const __SYSCALL_WORDSIZE = 64; | |
pub const __PTRDIFF_FMTi__ = c"li"; | |
pub const __SSE4_1__ = 1; | |
pub const __LDBL_DIG__ = 18; | |
pub const __GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2; | |
pub const _BITS_TYPESIZES_H = 1; | |
pub const __XSAVEOPT__ = 1; | |
pub const __UINT64_FMTo__ = c"lo"; | |
pub const __INT_FAST32_FMTd__ = c"d"; | |
pub const __HAVE_DISTINCT_FLOAT128X = __HAVE_FLOAT128X; | |
pub const __ATOMIC_ACQ_REL = 4; | |
pub const __mbstate_t_defined = 1; | |
pub const __LONG_LONG_MAX__ = @as(c_longlong, 9223372036854775807); | |
pub const __OPENCL_MEMORY_SCOPE_SUB_GROUP = 4; | |
pub const __wint_t_defined = 1; | |
pub const ____mbstate_t_defined = 1; | |
pub const __INO_T_MATCHES_INO64_T = 1; | |
pub const INT_LEAST16_MAX = 32767; | |
pub const __GLIBC__ = 2; | |
pub const UINT_FAST64_MAX = if (@typeId(@typeOf(18446744073709551615)) == @import("builtin").TypeId.Pointer) @ptrCast(__UINT64_C, 18446744073709551615) else if (@typeId(@typeOf(18446744073709551615)) == @import("builtin").TypeId.Int) @intToPtr(__UINT64_C, 18446744073709551615) else @as(__UINT64_C, 18446744073709551615); | |
pub const INT_LEAST32_MAX = 2147483647; | |
pub const __INTMAX_MAX__ = @as(c_long, 9223372036854775807); | |
pub const __UINT_LEAST32_FMTx__ = c"x"; | |
pub const __WORDSIZE = 64; | |
pub const __WCHAR_MAX__ = 2147483647; | |
pub const GODOT_TRANSFORM_SIZE = 48; | |
pub const __INT64_MAX__ = @as(c_long, 9223372036854775807); | |
pub const _BITS_TYPES_LOCALE_T_H = 1; | |
pub const __CLANG_ATOMIC_CHAR32_T_LOCK_FREE = 2; | |
pub const __INT_LEAST64_MAX__ = @as(c_long, 9223372036854775807); | |
pub const _BITS_STDINT_UINTN_H = 1; | |
pub const __UINTMAX_FMTX__ = c"lX"; | |
pub const _WCHAR_H = 1; | |
pub const __OPENCL_MEMORY_SCOPE_WORK_ITEM = 0; | |
pub const GODOT_AABB_SIZE = 24; | |
pub const __FLT_HAS_DENORM__ = 1; | |
pub const __DECIMAL_DIG__ = __LDBL_DECIMAL_DIG__; | |
pub const __SYSCALL_SLONG_TYPE = __SLONGWORD_TYPE; | |
pub const __DEV_T_TYPE = __UQUAD_TYPE; | |
pub const __INT32_FMTi__ = c"i"; | |
pub const __DBL_HAS_INFINITY__ = 1; | |
pub const __FINITE_MATH_ONLY__ = 0; | |
pub const __va_list_tag = struct___va_list_tag; | |
pub const _IO_FILE = struct__IO_FILE; | |
pub const __locale_data = struct___locale_data; | |
pub const __locale_struct = struct___locale_struct; | |
pub const tm = struct_tm; | |
pub const godot_gdnative_core_api_struct = struct_godot_gdnative_core_api_struct; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const c = @cImport(@cInclude("gdnative/gdnative.h")); | |
const std = @import("std"); | |
const testing = std.testing; | |
export fn add(a: i32, b: i32) i32 { | |
return a + b; | |
} | |
export fn some_test_procedure(data: *u8, args: *c.godot_array) c.godot_variant { | |
const ret: c.godot_variant = undefined; | |
c.godot_variant_new_int(&ret, 42); | |
return ret; | |
} | |
test "basic add functionality" { | |
testing.expect(add(3, 7) == 10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment