1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
|
const __root = @This();
pub const __builtin = @import("std").zig.c_translation.builtins;
pub const __helpers = @import("std").zig.c_translation.helpers;
pub extern fn __assert_fail(__assertion: [*c]const u8, __file: [*c]const u8, __line: c_uint, __function: [*c]const u8) noreturn;
pub extern fn __assert_perror_fail(__errnum: c_int, __file: [*c]const u8, __line: c_uint, __function: [*c]const u8) noreturn;
pub extern fn __assert(__assertion: [*c]const u8, __file: [*c]const u8, __line: c_int) noreturn;
pub const ptrdiff_t = c_long;
pub const wchar_t = c_int;
pub const max_align_t = extern struct {
__aro_max_align_ll: c_longlong = 0,
__aro_max_align_ld: c_longdouble = 0,
};
pub const struct___va_list_tag_1 = extern struct {
unnamed_0: c_uint = 0,
unnamed_1: c_uint = 0,
unnamed_2: ?*anyopaque = null,
unnamed_3: ?*anyopaque = null,
};
pub const __builtin_va_list = [1]struct___va_list_tag_1;
pub const va_list = __builtin_va_list;
pub const __gnuc_va_list = __builtin_va_list;
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 = @import("std").mem.zeroes([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 __suseconds64_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 = ?*anyopaque;
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;
const union_unnamed_2 = extern union {
__wch: c_uint,
__wchb: [4]u8,
};
pub const __mbstate_t = extern struct {
__count: c_int = 0,
__value: union_unnamed_2 = @import("std").mem.zeroes(union_unnamed_2),
};
pub const struct__G_fpos_t = extern struct {
__pos: __off_t = 0,
__state: __mbstate_t = @import("std").mem.zeroes(__mbstate_t),
};
pub const __fpos_t = struct__G_fpos_t;
pub const struct__G_fpos64_t = extern struct {
__pos: __off64_t = 0,
__state: __mbstate_t = @import("std").mem.zeroes(__mbstate_t),
};
pub const __fpos64_t = struct__G_fpos64_t;
pub const struct__IO_marker = opaque {}; // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/types/struct_FILE.h:75:7: warning: struct demoted to opaque type - has bitfield
pub const struct__IO_FILE = opaque {
pub const fclose = __root.fclose;
pub const fflush = __root.fflush;
pub const setbuf = __root.setbuf;
pub const setvbuf = __root.setvbuf;
pub const fprintf = __root.fprintf;
pub const vfprintf = __root.vfprintf;
pub const fscanf = __root.fscanf;
pub const vfscanf = __root.vfscanf;
pub const fgetc = __root.fgetc;
pub const getc = __root.getc;
pub const fseek = __root.fseek;
pub const ftell = __root.ftell;
pub const rewind = __root.rewind;
pub const fgetpos = __root.fgetpos;
pub const fsetpos = __root.fsetpos;
pub const clearerr = __root.clearerr;
pub const feof = __root.feof;
pub const ferror = __root.ferror;
pub const fileno = __root.fileno;
pub const pclose = __root.pclose;
pub const __uflow = __root.__uflow;
pub const __overflow = __root.__overflow;
pub const uflow = __root.__uflow;
pub const overflow = __root.__overflow;
};
pub const __FILE = struct__IO_FILE;
pub const FILE = struct__IO_FILE;
pub const struct__IO_codecvt = opaque {};
pub const struct__IO_wide_data = opaque {};
pub const _IO_lock_t = anyopaque;
pub const fpos_t = __fpos_t;
pub extern var stdin: ?*FILE;
pub extern var stdout: ?*FILE;
pub extern var stderr: ?*FILE;
pub extern fn remove(__filename: [*c]const u8) c_int;
pub extern fn rename(__old: [*c]const u8, __new: [*c]const u8) c_int;
pub extern fn fclose(__stream: ?*FILE) c_int;
pub extern fn tmpfile() ?*FILE;
pub extern fn tmpnam([*c]u8) [*c]u8;
pub extern fn fflush(__stream: ?*FILE) c_int;
pub extern fn fopen(noalias __filename: [*c]const u8, noalias __modes: [*c]const u8) ?*FILE;
pub extern fn freopen(noalias __filename: [*c]const u8, noalias __modes: [*c]const u8, noalias __stream: ?*FILE) ?*FILE;
pub extern fn fdopen(__fd: c_int, __modes: [*c]const u8) ?*FILE;
pub extern fn setbuf(noalias __stream: ?*FILE, noalias __buf: [*c]u8) void;
pub extern fn setvbuf(noalias __stream: ?*FILE, noalias __buf: [*c]u8, __modes: c_int, __n: usize) c_int;
pub extern fn fprintf(noalias __stream: ?*FILE, noalias __format: [*c]const u8, ...) c_int;
pub extern fn printf(noalias __format: [*c]const u8, ...) c_int;
pub extern fn sprintf(noalias __s: [*c]u8, noalias __format: [*c]const u8, ...) c_int;
pub extern fn vfprintf(noalias __s: ?*FILE, noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_1) c_int;
pub extern fn vprintf(noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_1) c_int;
pub extern fn vsprintf(noalias __s: [*c]u8, noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_1) c_int;
pub extern fn snprintf(noalias __s: [*c]u8, __maxlen: usize, noalias __format: [*c]const u8, ...) c_int;
pub extern fn vsnprintf(noalias __s: [*c]u8, __maxlen: usize, noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_1) c_int;
pub extern fn fscanf(noalias __stream: ?*FILE, noalias __format: [*c]const u8, ...) c_int;
pub extern fn scanf(noalias __format: [*c]const u8, ...) c_int;
pub extern fn sscanf(noalias __s: [*c]const u8, noalias __format: [*c]const u8, ...) c_int;
pub extern fn vfscanf(noalias __s: ?*FILE, noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_1) c_int;
pub extern fn vscanf(noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_1) c_int;
pub extern fn vsscanf(noalias __s: [*c]const u8, noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_1) c_int;
pub extern fn fgetc(__stream: ?*FILE) c_int;
pub extern fn getc(__stream: ?*FILE) c_int;
pub extern fn getchar() c_int;
pub extern fn fputc(__c: c_int, __stream: ?*FILE) c_int;
pub extern fn putc(__c: c_int, __stream: ?*FILE) c_int;
pub extern fn putchar(__c: c_int) c_int;
pub extern fn fgets(noalias __s: [*c]u8, __n: c_int, noalias __stream: ?*FILE) [*c]u8;
pub extern fn fputs(noalias __s: [*c]const u8, noalias __stream: ?*FILE) c_int;
pub extern fn puts(__s: [*c]const u8) c_int;
pub extern fn ungetc(__c: c_int, __stream: ?*FILE) c_int;
pub extern fn fread(noalias __ptr: ?*anyopaque, __size: usize, __n: usize, noalias __stream: ?*FILE) usize;
pub extern fn fwrite(noalias __ptr: ?*const anyopaque, __size: usize, __n: usize, noalias __s: ?*FILE) usize;
pub extern fn fseek(__stream: ?*FILE, __off: c_long, __whence: c_int) c_int;
pub extern fn ftell(__stream: ?*FILE) c_long;
pub extern fn rewind(__stream: ?*FILE) void;
pub extern fn fgetpos(noalias __stream: ?*FILE, noalias __pos: [*c]fpos_t) c_int;
pub extern fn fsetpos(__stream: ?*FILE, __pos: [*c]const fpos_t) c_int;
pub extern fn clearerr(__stream: ?*FILE) void;
pub extern fn feof(__stream: ?*FILE) c_int;
pub extern fn ferror(__stream: ?*FILE) c_int;
pub extern fn perror(__s: [*c]const u8) void;
pub extern fn fileno(__stream: ?*FILE) c_int;
pub extern fn pclose(__stream: ?*FILE) c_int;
pub extern fn popen(__command: [*c]const u8, __modes: [*c]const u8) ?*FILE;
pub extern fn ctermid(__s: [*c]u8) [*c]u8;
pub extern fn __uflow(?*FILE) c_int;
pub extern fn __overflow(?*FILE, c_int) c_int;
pub const div_t = extern struct {
quot: c_int = 0,
rem: c_int = 0,
};
pub const ldiv_t = extern struct {
quot: c_long = 0,
rem: c_long = 0,
};
pub const lldiv_t = extern struct {
quot: c_longlong = 0,
rem: c_longlong = 0,
};
pub extern fn __ctype_get_mb_cur_max() usize;
pub extern fn atof(__nptr: [*c]const u8) f64;
pub extern fn atoi(__nptr: [*c]const u8) c_int;
pub extern fn atol(__nptr: [*c]const u8) c_long;
pub extern fn atoll(__nptr: [*c]const u8) c_longlong;
pub extern fn strtod(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8) f64;
pub extern fn strtof(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8) f32;
pub extern fn strtold(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8) c_longdouble;
pub extern fn strtol(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8, __base: c_int) c_long;
pub extern fn strtoul(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8, __base: c_int) c_ulong;
pub extern fn strtoll(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8, __base: c_int) c_longlong;
pub extern fn strtoull(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8, __base: c_int) c_ulonglong;
pub extern fn rand() c_int;
pub extern fn srand(__seed: c_uint) void;
pub extern fn malloc(__size: usize) ?*anyopaque;
pub extern fn calloc(__nmemb: usize, __size: usize) ?*anyopaque;
pub extern fn realloc(__ptr: ?*anyopaque, __size: usize) ?*anyopaque;
pub extern fn free(__ptr: ?*anyopaque) void;
pub extern fn aligned_alloc(__alignment: usize, __size: usize) ?*anyopaque;
pub extern fn abort() noreturn;
pub extern fn atexit(__func: ?*const fn () callconv(.c) void) c_int;
pub extern fn at_quick_exit(__func: ?*const fn () callconv(.c) void) c_int;
pub extern fn exit(__status: c_int) noreturn;
pub extern fn quick_exit(__status: c_int) noreturn;
pub extern fn _Exit(__status: c_int) noreturn;
pub extern fn getenv(__name: [*c]const u8) [*c]u8;
pub extern fn system(__command: [*c]const u8) c_int;
pub const __compar_fn_t = ?*const fn (?*const anyopaque, ?*const anyopaque) callconv(.c) c_int;
pub extern fn bsearch(__key: ?*const anyopaque, __base: ?*const anyopaque, __nmemb: usize, __size: usize, __compar: __compar_fn_t) ?*anyopaque;
pub extern fn qsort(__base: ?*anyopaque, __nmemb: usize, __size: usize, __compar: __compar_fn_t) void;
pub extern fn abs(__x: c_int) c_int;
pub extern fn labs(__x: c_long) c_long;
pub extern fn llabs(__x: c_longlong) c_longlong;
pub extern fn div(__numer: c_int, __denom: c_int) div_t;
pub extern fn ldiv(__numer: c_long, __denom: c_long) ldiv_t;
pub extern fn lldiv(__numer: c_longlong, __denom: c_longlong) lldiv_t;
pub extern fn mblen(__s: [*c]const u8, __n: usize) c_int;
pub extern fn mbtowc(noalias __pwc: [*c]wchar_t, noalias __s: [*c]const u8, __n: usize) c_int;
pub extern fn wctomb(__s: [*c]u8, __wchar: wchar_t) c_int;
pub extern fn mbstowcs(noalias __pwcs: [*c]wchar_t, noalias __s: [*c]const u8, __n: usize) usize;
pub extern fn wcstombs(noalias __s: [*c]u8, noalias __pwcs: [*c]const wchar_t, __n: usize) usize;
pub extern fn memcpy(noalias __dest: ?*anyopaque, noalias __src: ?*const anyopaque, __n: usize) ?*anyopaque;
pub extern fn memmove(__dest: ?*anyopaque, __src: ?*const anyopaque, __n: usize) ?*anyopaque;
pub extern fn memset(__s: ?*anyopaque, __c: c_int, __n: usize) ?*anyopaque;
pub extern fn memcmp(__s1: ?*const anyopaque, __s2: ?*const anyopaque, __n: usize) c_int;
pub extern fn __memcmpeq(__s1: ?*const anyopaque, __s2: ?*const anyopaque, __n: usize) c_int;
pub extern fn memchr(__s: ?*const anyopaque, __c: c_int, __n: usize) ?*anyopaque;
pub extern fn strcpy(noalias __dest: [*c]u8, noalias __src: [*c]const u8) [*c]u8;
pub extern fn strncpy(noalias __dest: [*c]u8, noalias __src: [*c]const u8, __n: usize) [*c]u8;
pub extern fn strcat(noalias __dest: [*c]u8, noalias __src: [*c]const u8) [*c]u8;
pub extern fn strncat(noalias __dest: [*c]u8, noalias __src: [*c]const u8, __n: usize) [*c]u8;
pub extern fn strcmp(__s1: [*c]const u8, __s2: [*c]const u8) c_int;
pub extern fn strncmp(__s1: [*c]const u8, __s2: [*c]const u8, __n: usize) c_int;
pub extern fn strcoll(__s1: [*c]const u8, __s2: [*c]const u8) c_int;
pub extern fn strxfrm(noalias __dest: [*c]u8, noalias __src: [*c]const u8, __n: usize) usize;
pub extern fn strchr(__s: [*c]const u8, __c: c_int) [*c]u8;
pub extern fn strrchr(__s: [*c]const u8, __c: c_int) [*c]u8;
pub extern fn strcspn(__s: [*c]const u8, __reject: [*c]const u8) usize;
pub extern fn strspn(__s: [*c]const u8, __accept: [*c]const u8) usize;
pub extern fn strpbrk(__s: [*c]const u8, __accept: [*c]const u8) [*c]u8;
pub extern fn strstr(__haystack: [*c]const u8, __needle: [*c]const u8) [*c]u8;
pub extern fn strtok(noalias __s: [*c]u8, noalias __delim: [*c]const u8) [*c]u8;
pub extern fn __strtok_r(noalias __s: [*c]u8, noalias __delim: [*c]const u8, noalias __save_ptr: [*c][*c]u8) [*c]u8;
pub extern fn strtok_r(noalias __s: [*c]u8, noalias __delim: [*c]const u8, noalias __save_ptr: [*c][*c]u8) [*c]u8;
pub extern fn strlen(__s: [*c]const u8) usize;
pub extern fn strerror(__errnum: c_int) [*c]u8;
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 @"u8" = u8;
pub const @"i8" = i8;
pub const @"u16" = u16;
pub const @"i16" = i16;
pub const @"u32" = u32;
pub const @"i32" = i32;
pub const @"u64" = u64;
pub const @"i64" = i64;
pub const RGFW_check_size64 = [1]u8;
pub const RGFW_check_size32 = [1]u8;
pub const RGFW_check_size16 = [1]u8;
pub const RGFW_bool = @"u8";
pub const struct_RGFW_info = opaque {
pub const RGFW_init_ptr = __root.RGFW_init_ptr;
pub const RGFW_deinit_ptr = __root.RGFW_deinit_ptr;
pub const RGFW_setInfo = __root.RGFW_setInfo;
pub const ptr = __root.RGFW_init_ptr;
pub const setInfo = __root.RGFW_setInfo;
};
pub const RGFW_info = struct_RGFW_info;
pub const struct_RGFW_window = opaque {
pub const RGFW_window_createSurface = __root.RGFW_window_createSurface;
pub const RGFW_window_createSurfacePtr = __root.RGFW_window_createSurfacePtr;
pub const RGFW_window_blitSurface = __root.RGFW_window_blitSurface;
pub const RGFW_window_getPosition = __root.RGFW_window_getPosition;
pub const RGFW_window_getSize = __root.RGFW_window_getSize;
pub const RGFW_window_getSizeInPixels = __root.RGFW_window_getSizeInPixels;
pub const RGFW_window_getFlags = __root.RGFW_window_getFlags;
pub const RGFW_window_getExitKey = __root.RGFW_window_getExitKey;
pub const RGFW_window_setExitKey = __root.RGFW_window_setExitKey;
pub const RGFW_window_setEnabledEvents = __root.RGFW_window_setEnabledEvents;
pub const RGFW_window_getEnabledEvents = __root.RGFW_window_getEnabledEvents;
pub const RGFW_window_setDisabledEvents = __root.RGFW_window_setDisabledEvents;
pub const RGFW_window_setEventState = __root.RGFW_window_setEventState;
pub const RGFW_window_getUserPtr = __root.RGFW_window_getUserPtr;
pub const RGFW_window_setUserPtr = __root.RGFW_window_setUserPtr;
pub const RGFW_window_getSrc = __root.RGFW_window_getSrc;
pub const RGFW_window_setLayer_OSX = __root.RGFW_window_setLayer_OSX;
pub const RGFW_window_getView_OSX = __root.RGFW_window_getView_OSX;
pub const RGFW_window_getWindow_OSX = __root.RGFW_window_getWindow_OSX;
pub const RGFW_window_getHWND = __root.RGFW_window_getHWND;
pub const RGFW_window_getHDC = __root.RGFW_window_getHDC;
pub const RGFW_window_getWindow_X11 = __root.RGFW_window_getWindow_X11;
pub const RGFW_window_getWindow_Wayland = __root.RGFW_window_getWindow_Wayland;
pub const RGFW_window_setFlags = __root.RGFW_window_setFlags;
pub const RGFW_window_checkEvent = __root.RGFW_window_checkEvent;
pub const RGFW_window_checkQueuedEvent = __root.RGFW_window_checkQueuedEvent;
pub const RGFW_window_isKeyPressed = __root.RGFW_window_isKeyPressed;
pub const RGFW_window_isKeyDown = __root.RGFW_window_isKeyDown;
pub const RGFW_window_isKeyReleased = __root.RGFW_window_isKeyReleased;
pub const RGFW_window_isMousePressed = __root.RGFW_window_isMousePressed;
pub const RGFW_window_isMouseDown = __root.RGFW_window_isMouseDown;
pub const RGFW_window_isMouseReleased = __root.RGFW_window_isMouseReleased;
pub const RGFW_window_didMouseLeave = __root.RGFW_window_didMouseLeave;
pub const RGFW_window_didMouseEnter = __root.RGFW_window_didMouseEnter;
pub const RGFW_window_isMouseInside = __root.RGFW_window_isMouseInside;
pub const RGFW_window_isDataDragging = __root.RGFW_window_isDataDragging;
pub const RGFW_window_getDataDrag = __root.RGFW_window_getDataDrag;
pub const RGFW_window_didDataDrop = __root.RGFW_window_didDataDrop;
pub const RGFW_window_getDataDrop = __root.RGFW_window_getDataDrop;
pub const RGFW_window_close = __root.RGFW_window_close;
pub const RGFW_window_closePtr = __root.RGFW_window_closePtr;
pub const RGFW_window_fetchSize = __root.RGFW_window_fetchSize;
pub const RGFW_window_move = __root.RGFW_window_move;
pub const RGFW_window_moveToMonitor = __root.RGFW_window_moveToMonitor;
pub const RGFW_window_resize = __root.RGFW_window_resize;
pub const RGFW_window_setAspectRatio = __root.RGFW_window_setAspectRatio;
pub const RGFW_window_setMinSize = __root.RGFW_window_setMinSize;
pub const RGFW_window_setMaxSize = __root.RGFW_window_setMaxSize;
pub const RGFW_window_focus = __root.RGFW_window_focus;
pub const RGFW_window_isInFocus = __root.RGFW_window_isInFocus;
pub const RGFW_window_raise = __root.RGFW_window_raise;
pub const RGFW_window_maximize = __root.RGFW_window_maximize;
pub const RGFW_window_setFullscreen = __root.RGFW_window_setFullscreen;
pub const RGFW_window_center = __root.RGFW_window_center;
pub const RGFW_window_minimize = __root.RGFW_window_minimize;
pub const RGFW_window_restore = __root.RGFW_window_restore;
pub const RGFW_window_setFloating = __root.RGFW_window_setFloating;
pub const RGFW_window_setOpacity = __root.RGFW_window_setOpacity;
pub const RGFW_window_setBorder = __root.RGFW_window_setBorder;
pub const RGFW_window_borderless = __root.RGFW_window_borderless;
pub const RGFW_window_setDND = __root.RGFW_window_setDND;
pub const RGFW_window_allowsDND = __root.RGFW_window_allowsDND;
pub const RGFW_window_setMousePassthrough = __root.RGFW_window_setMousePassthrough;
pub const RGFW_window_setName = __root.RGFW_window_setName;
pub const RGFW_window_setIcon = __root.RGFW_window_setIcon;
pub const RGFW_window_setIconEx = __root.RGFW_window_setIconEx;
pub const RGFW_window_setMouse = __root.RGFW_window_setMouse;
pub const RGFW_window_setMouseStandard = __root.RGFW_window_setMouseStandard;
pub const RGFW_window_setMouseDefault = __root.RGFW_window_setMouseDefault;
pub const RGFW_window_setRawMouseMode = __root.RGFW_window_setRawMouseMode;
pub const RGFW_window_captureMouse = __root.RGFW_window_captureMouse;
pub const RGFW_window_captureRawMouse = __root.RGFW_window_captureRawMouse;
pub const RGFW_window_isRawMouseMode = __root.RGFW_window_isRawMouseMode;
pub const RGFW_window_isCaptured = __root.RGFW_window_isCaptured;
pub const RGFW_window_hide = __root.RGFW_window_hide;
pub const RGFW_window_show = __root.RGFW_window_show;
pub const RGFW_window_flash = __root.RGFW_window_flash;
pub const RGFW_window_setShouldClose = __root.RGFW_window_setShouldClose;
pub const RGFW_window_getMouse = __root.RGFW_window_getMouse;
pub const RGFW_window_showMouse = __root.RGFW_window_showMouse;
pub const RGFW_window_isMouseHidden = __root.RGFW_window_isMouseHidden;
pub const RGFW_window_moveMouse = __root.RGFW_window_moveMouse;
pub const RGFW_window_shouldClose = __root.RGFW_window_shouldClose;
pub const RGFW_window_isFullscreen = __root.RGFW_window_isFullscreen;
pub const RGFW_window_isHidden = __root.RGFW_window_isHidden;
pub const RGFW_window_isMinimized = __root.RGFW_window_isMinimized;
pub const RGFW_window_isMaximized = __root.RGFW_window_isMaximized;
pub const RGFW_window_isFloating = __root.RGFW_window_isFloating;
pub const RGFW_window_scaleToMonitor = __root.RGFW_window_scaleToMonitor;
pub const RGFW_window_getMonitor = __root.RGFW_window_getMonitor;
pub const RGFW_window_createContext_OpenGL = __root.RGFW_window_createContext_OpenGL;
pub const RGFW_window_createContextPtr_OpenGL = __root.RGFW_window_createContextPtr_OpenGL;
pub const RGFW_window_getContext_OpenGL = __root.RGFW_window_getContext_OpenGL;
pub const RGFW_window_deleteContext_OpenGL = __root.RGFW_window_deleteContext_OpenGL;
pub const RGFW_window_deleteContextPtr_OpenGL = __root.RGFW_window_deleteContextPtr_OpenGL;
pub const RGFW_window_makeCurrentWindow_OpenGL = __root.RGFW_window_makeCurrentWindow_OpenGL;
pub const RGFW_window_makeCurrentContext_OpenGL = __root.RGFW_window_makeCurrentContext_OpenGL;
pub const RGFW_window_swapBuffers_OpenGL = __root.RGFW_window_swapBuffers_OpenGL;
pub const RGFW_window_swapInterval_OpenGL = __root.RGFW_window_swapInterval_OpenGL;
pub const RGFW_setRootWindow = __root.RGFW_setRootWindow;
pub const RGFW_window_eventQueuePop = __root.RGFW_window_eventQueuePop;
pub const createSurface = __root.RGFW_window_createSurface;
pub const createSurfacePtr = __root.RGFW_window_createSurfacePtr;
pub const blitSurface = __root.RGFW_window_blitSurface;
pub const getPosition = __root.RGFW_window_getPosition;
pub const getSize = __root.RGFW_window_getSize;
pub const getSizeInPixels = __root.RGFW_window_getSizeInPixels;
pub const getFlags = __root.RGFW_window_getFlags;
pub const getExitKey = __root.RGFW_window_getExitKey;
pub const setExitKey = __root.RGFW_window_setExitKey;
pub const setEnabledEvents = __root.RGFW_window_setEnabledEvents;
pub const getEnabledEvents = __root.RGFW_window_getEnabledEvents;
pub const setDisabledEvents = __root.RGFW_window_setDisabledEvents;
pub const setEventState = __root.RGFW_window_setEventState;
pub const getUserPtr = __root.RGFW_window_getUserPtr;
pub const setUserPtr = __root.RGFW_window_setUserPtr;
pub const getSrc = __root.RGFW_window_getSrc;
pub const setLayer_OSX = __root.RGFW_window_setLayer_OSX;
pub const getView_OSX = __root.RGFW_window_getView_OSX;
pub const getWindow_OSX = __root.RGFW_window_getWindow_OSX;
pub const getHWND = __root.RGFW_window_getHWND;
pub const getHDC = __root.RGFW_window_getHDC;
pub const getWindow_X11 = __root.RGFW_window_getWindow_X11;
pub const getWindow_Wayland = __root.RGFW_window_getWindow_Wayland;
pub const setFlags = __root.RGFW_window_setFlags;
pub const checkEvent = __root.RGFW_window_checkEvent;
pub const checkQueuedEvent = __root.RGFW_window_checkQueuedEvent;
pub const isKeyPressed = __root.RGFW_window_isKeyPressed;
pub const isKeyDown = __root.RGFW_window_isKeyDown;
pub const isKeyReleased = __root.RGFW_window_isKeyReleased;
pub const isMousePressed = __root.RGFW_window_isMousePressed;
pub const isMouseDown = __root.RGFW_window_isMouseDown;
pub const isMouseReleased = __root.RGFW_window_isMouseReleased;
pub const didMouseLeave = __root.RGFW_window_didMouseLeave;
pub const didMouseEnter = __root.RGFW_window_didMouseEnter;
pub const isMouseInside = __root.RGFW_window_isMouseInside;
pub const isDataDragging = __root.RGFW_window_isDataDragging;
pub const getDataDrag = __root.RGFW_window_getDataDrag;
pub const didDataDrop = __root.RGFW_window_didDataDrop;
pub const getDataDrop = __root.RGFW_window_getDataDrop;
pub const close = __root.RGFW_window_close;
pub const closePtr = __root.RGFW_window_closePtr;
pub const fetchSize = __root.RGFW_window_fetchSize;
pub const move = __root.RGFW_window_move;
pub const moveToMonitor = __root.RGFW_window_moveToMonitor;
pub const resize = __root.RGFW_window_resize;
pub const setAspectRatio = __root.RGFW_window_setAspectRatio;
pub const setMinSize = __root.RGFW_window_setMinSize;
pub const setMaxSize = __root.RGFW_window_setMaxSize;
pub const focus = __root.RGFW_window_focus;
pub const isInFocus = __root.RGFW_window_isInFocus;
pub const raise = __root.RGFW_window_raise;
pub const maximize = __root.RGFW_window_maximize;
pub const setFullscreen = __root.RGFW_window_setFullscreen;
pub const center = __root.RGFW_window_center;
pub const minimize = __root.RGFW_window_minimize;
pub const restore = __root.RGFW_window_restore;
pub const setFloating = __root.RGFW_window_setFloating;
pub const setOpacity = __root.RGFW_window_setOpacity;
pub const setBorder = __root.RGFW_window_setBorder;
pub const borderless = __root.RGFW_window_borderless;
pub const setDND = __root.RGFW_window_setDND;
pub const allowsDND = __root.RGFW_window_allowsDND;
pub const setMousePassthrough = __root.RGFW_window_setMousePassthrough;
pub const setName = __root.RGFW_window_setName;
pub const setIcon = __root.RGFW_window_setIcon;
pub const setIconEx = __root.RGFW_window_setIconEx;
pub const setMouse = __root.RGFW_window_setMouse;
pub const setMouseStandard = __root.RGFW_window_setMouseStandard;
pub const setMouseDefault = __root.RGFW_window_setMouseDefault;
pub const setRawMouseMode = __root.RGFW_window_setRawMouseMode;
pub const captureMouse = __root.RGFW_window_captureMouse;
pub const captureRawMouse = __root.RGFW_window_captureRawMouse;
pub const isRawMouseMode = __root.RGFW_window_isRawMouseMode;
pub const isCaptured = __root.RGFW_window_isCaptured;
pub const hide = __root.RGFW_window_hide;
pub const show = __root.RGFW_window_show;
pub const flash = __root.RGFW_window_flash;
pub const setShouldClose = __root.RGFW_window_setShouldClose;
pub const getMouse = __root.RGFW_window_getMouse;
pub const showMouse = __root.RGFW_window_showMouse;
pub const isMouseHidden = __root.RGFW_window_isMouseHidden;
pub const moveMouse = __root.RGFW_window_moveMouse;
pub const shouldClose = __root.RGFW_window_shouldClose;
pub const isFullscreen = __root.RGFW_window_isFullscreen;
pub const isHidden = __root.RGFW_window_isHidden;
pub const isMinimized = __root.RGFW_window_isMinimized;
pub const isMaximized = __root.RGFW_window_isMaximized;
pub const isFloating = __root.RGFW_window_isFloating;
pub const scaleToMonitor = __root.RGFW_window_scaleToMonitor;
pub const getMonitor = __root.RGFW_window_getMonitor;
pub const createContext_OpenGL = __root.RGFW_window_createContext_OpenGL;
pub const createContextPtr_OpenGL = __root.RGFW_window_createContextPtr_OpenGL;
pub const getContext_OpenGL = __root.RGFW_window_getContext_OpenGL;
pub const deleteContext_OpenGL = __root.RGFW_window_deleteContext_OpenGL;
pub const deleteContextPtr_OpenGL = __root.RGFW_window_deleteContextPtr_OpenGL;
pub const makeCurrentWindow_OpenGL = __root.RGFW_window_makeCurrentWindow_OpenGL;
pub const makeCurrentContext_OpenGL = __root.RGFW_window_makeCurrentContext_OpenGL;
pub const swapBuffers_OpenGL = __root.RGFW_window_swapBuffers_OpenGL;
pub const swapInterval_OpenGL = __root.RGFW_window_swapInterval_OpenGL;
pub const setRootWindow = __root.RGFW_setRootWindow;
pub const eventQueuePop = __root.RGFW_window_eventQueuePop;
};
pub const RGFW_window = struct_RGFW_window;
pub const struct_RGFW_window_src = opaque {};
pub const RGFW_window_src = struct_RGFW_window_src;
pub const RGFW_format = @"u8";
pub const RGFW_formatRGB8: c_int = 0;
pub const RGFW_formatBGR8: c_int = 1;
pub const RGFW_formatRGBA8: c_int = 2;
pub const RGFW_formatARGB8: c_int = 3;
pub const RGFW_formatBGRA8: c_int = 4;
pub const RGFW_formatABGR8: c_int = 5;
pub const RGFW_formatCount: c_int = 6;
pub const enum_RGFW_format_enum = c_uint;
pub const struct_RGFW_colorLayout = extern struct {
r: @"i32" = 0,
g: @"i32" = 0,
b: @"i32" = 0,
a: @"i32" = 0,
channels: @"u32" = 0,
};
pub const RGFW_colorLayout = struct_RGFW_colorLayout;
pub const RGFW_convertImageDataFunc = ?*const fn (dest_data: [*c]@"u8", src_data: [*c]@"u8", srcLayout: [*c]const RGFW_colorLayout, destLayout: [*c]const RGFW_colorLayout, count: usize) callconv(.c) void;
pub const struct_RGFW_nativeImage = opaque {};
pub const RGFW_nativeImage = struct_RGFW_nativeImage;
pub const struct_RGFW_surface = opaque {
pub const RGFW_surface_getNativeImage = __root.RGFW_surface_getNativeImage;
pub const RGFW_surface_free = __root.RGFW_surface_free;
pub const RGFW_surface_freePtr = __root.RGFW_surface_freePtr;
pub const RGFW_surface_setConvertFunc = __root.RGFW_surface_setConvertFunc;
pub const getNativeImage = __root.RGFW_surface_getNativeImage;
pub const freePtr = __root.RGFW_surface_freePtr;
pub const setConvertFunc = __root.RGFW_surface_setConvertFunc;
};
pub const RGFW_surface = struct_RGFW_surface;
pub const struct_RGFW_gammaRamp = extern struct {
red: [*c]@"u16" = null,
green: [*c]@"u16" = null,
blue: [*c]@"u16" = null,
count: usize = 0,
pub const RGFW_freeGammaRamp = __root.RGFW_freeGammaRamp;
pub const freeGammaRamp = __root.RGFW_freeGammaRamp;
};
pub const RGFW_gammaRamp = struct_RGFW_gammaRamp;
pub const struct_RGFW_monitorMode = extern struct {
w: @"i32" = 0,
h: @"i32" = 0,
refreshRate: f32 = 0,
red: @"u8" = 0,
blue: @"u8" = 0,
green: @"u8" = 0,
src: ?*anyopaque = null,
pub const RGFW_freeModes = __root.RGFW_freeModes;
pub const RGFW_monitorModeCompare = __root.RGFW_monitorModeCompare;
pub const freeModes = __root.RGFW_freeModes;
pub const monitorModeCompare = __root.RGFW_monitorModeCompare;
};
pub const RGFW_monitorMode = struct_RGFW_monitorMode;
pub const struct_RGFW_monitorNode = opaque {};
pub const RGFW_monitorNode = struct_RGFW_monitorNode;
pub const struct_RGFW_monitor = extern struct {
x: @"i32" = 0,
y: @"i32" = 0,
name: [128]u8 = @import("std").mem.zeroes([128]u8),
scaleX: f32 = 0,
scaleY: f32 = 0,
pixelRatio: f32 = 0,
physW: f32 = 0,
physH: f32 = 0,
mode: RGFW_monitorMode = @import("std").mem.zeroes(RGFW_monitorMode),
userPtr: ?*anyopaque = null,
node: ?*RGFW_monitorNode = null,
pub const RGFW_monitor_getModes = __root.RGFW_monitor_getModes;
pub const RGFW_monitor_getModesPtr = __root.RGFW_monitor_getModesPtr;
pub const RGFW_monitor_findClosestMode = __root.RGFW_monitor_findClosestMode;
pub const RGFW_monitor_getGammaRamp = __root.RGFW_monitor_getGammaRamp;
pub const RGFW_monitor_getGammaRampPtr = __root.RGFW_monitor_getGammaRampPtr;
pub const RGFW_monitor_setGammaRamp = __root.RGFW_monitor_setGammaRamp;
pub const RGFW_monitor_setGamma = __root.RGFW_monitor_setGamma;
pub const RGFW_monitor_setGammaPtr = __root.RGFW_monitor_setGammaPtr;
pub const RGFW_monitor_getWorkarea = __root.RGFW_monitor_getWorkarea;
pub const RGFW_monitor_getPosition = __root.RGFW_monitor_getPosition;
pub const RGFW_monitor_getName = __root.RGFW_monitor_getName;
pub const RGFW_monitor_getScale = __root.RGFW_monitor_getScale;
pub const RGFW_monitor_getPhysicalSize = __root.RGFW_monitor_getPhysicalSize;
pub const RGFW_monitor_setUserPtr = __root.RGFW_monitor_setUserPtr;
pub const RGFW_monitor_getUserPtr = __root.RGFW_monitor_getUserPtr;
pub const RGFW_monitor_getMode = __root.RGFW_monitor_getMode;
pub const RGFW_monitor_requestMode = __root.RGFW_monitor_requestMode;
pub const RGFW_monitor_setMode = __root.RGFW_monitor_setMode;
pub const RGFW_monitor_scaleToWindow = __root.RGFW_monitor_scaleToWindow;
pub const getModes = __root.RGFW_monitor_getModes;
pub const getModesPtr = __root.RGFW_monitor_getModesPtr;
pub const findClosestMode = __root.RGFW_monitor_findClosestMode;
pub const getGammaRamp = __root.RGFW_monitor_getGammaRamp;
pub const getGammaRampPtr = __root.RGFW_monitor_getGammaRampPtr;
pub const setGammaRamp = __root.RGFW_monitor_setGammaRamp;
pub const setGamma = __root.RGFW_monitor_setGamma;
pub const setGammaPtr = __root.RGFW_monitor_setGammaPtr;
pub const getWorkarea = __root.RGFW_monitor_getWorkarea;
pub const getPosition = __root.RGFW_monitor_getPosition;
pub const getName = __root.RGFW_monitor_getName;
pub const getScale = __root.RGFW_monitor_getScale;
pub const getPhysicalSize = __root.RGFW_monitor_getPhysicalSize;
pub const setUserPtr = __root.RGFW_monitor_setUserPtr;
pub const getUserPtr = __root.RGFW_monitor_getUserPtr;
pub const getMode = __root.RGFW_monitor_getMode;
pub const requestMode = __root.RGFW_monitor_requestMode;
pub const setMode = __root.RGFW_monitor_setMode;
pub const scaleToWindow = __root.RGFW_monitor_scaleToWindow;
};
pub const RGFW_monitor = struct_RGFW_monitor;
pub const RGFW_modeRequest = @"u8";
pub const RGFW_monitorScale: c_int = 1;
pub const RGFW_monitorRefresh: c_int = 2;
pub const RGFW_monitorRGB: c_int = 4;
pub const RGFW_monitorAll: c_int = 7;
pub const enum_RGFW_modeRequest_enum = c_uint;
pub const RGFW_mouse = anyopaque;
pub const RGFW_key = @"u8";
pub const RGFW_keyNULL: c_int = 0;
pub const RGFW_keyEscape: c_int = 27;
pub const RGFW_keyBacktick: c_int = 96;
pub const RGFW_key0: c_int = 48;
pub const RGFW_key1: c_int = 49;
pub const RGFW_key2: c_int = 50;
pub const RGFW_key3: c_int = 51;
pub const RGFW_key4: c_int = 52;
pub const RGFW_key5: c_int = 53;
pub const RGFW_key6: c_int = 54;
pub const RGFW_key7: c_int = 55;
pub const RGFW_key8: c_int = 56;
pub const RGFW_key9: c_int = 57;
pub const RGFW_keyMinus: c_int = 45;
pub const RGFW_keyEqual: c_int = 61;
pub const RGFW_keyEquals: c_int = 61;
pub const RGFW_keyBackSpace: c_int = 8;
pub const RGFW_keyTab: c_int = 9;
pub const RGFW_keySpace: c_int = 32;
pub const RGFW_keyA: c_int = 97;
pub const RGFW_keyB: c_int = 98;
pub const RGFW_keyC: c_int = 99;
pub const RGFW_keyD: c_int = 100;
pub const RGFW_keyE: c_int = 101;
pub const RGFW_keyF: c_int = 102;
pub const RGFW_keyG: c_int = 103;
pub const RGFW_keyH: c_int = 104;
pub const RGFW_keyI: c_int = 105;
pub const RGFW_keyJ: c_int = 106;
pub const RGFW_keyK: c_int = 107;
pub const RGFW_keyL: c_int = 108;
pub const RGFW_keyM: c_int = 109;
pub const RGFW_keyN: c_int = 110;
pub const RGFW_keyO: c_int = 111;
pub const RGFW_keyP: c_int = 112;
pub const RGFW_keyQ: c_int = 113;
pub const RGFW_keyR: c_int = 114;
pub const RGFW_keyS: c_int = 115;
pub const RGFW_keyT: c_int = 116;
pub const RGFW_keyU: c_int = 117;
pub const RGFW_keyV: c_int = 118;
pub const RGFW_keyW: c_int = 119;
pub const RGFW_keyX: c_int = 120;
pub const RGFW_keyY: c_int = 121;
pub const RGFW_keyZ: c_int = 122;
pub const RGFW_keyPeriod: c_int = 46;
pub const RGFW_keyComma: c_int = 44;
pub const RGFW_keySlash: c_int = 47;
pub const RGFW_keyBracket: c_int = 91;
pub const RGFW_keyCloseBracket: c_int = 93;
pub const RGFW_keySemicolon: c_int = 59;
pub const RGFW_keyApostrophe: c_int = 39;
pub const RGFW_keyBackSlash: c_int = 92;
pub const RGFW_keyReturn: c_int = 10;
pub const RGFW_keyEnter: c_int = 10;
pub const RGFW_keyDelete: c_int = 127;
pub const RGFW_keyF1: c_int = 128;
pub const RGFW_keyF2: c_int = 129;
pub const RGFW_keyF3: c_int = 130;
pub const RGFW_keyF4: c_int = 131;
pub const RGFW_keyF5: c_int = 132;
pub const RGFW_keyF6: c_int = 133;
pub const RGFW_keyF7: c_int = 134;
pub const RGFW_keyF8: c_int = 135;
pub const RGFW_keyF9: c_int = 136;
pub const RGFW_keyF10: c_int = 137;
pub const RGFW_keyF11: c_int = 138;
pub const RGFW_keyF12: c_int = 139;
pub const RGFW_keyF13: c_int = 140;
pub const RGFW_keyF14: c_int = 141;
pub const RGFW_keyF15: c_int = 142;
pub const RGFW_keyF16: c_int = 143;
pub const RGFW_keyF17: c_int = 144;
pub const RGFW_keyF18: c_int = 145;
pub const RGFW_keyF19: c_int = 146;
pub const RGFW_keyF20: c_int = 147;
pub const RGFW_keyF21: c_int = 148;
pub const RGFW_keyF22: c_int = 149;
pub const RGFW_keyF23: c_int = 150;
pub const RGFW_keyF24: c_int = 151;
pub const RGFW_keyF25: c_int = 152;
pub const RGFW_keyCapsLock: c_int = 153;
pub const RGFW_keyShiftL: c_int = 154;
pub const RGFW_keyControlL: c_int = 155;
pub const RGFW_keyAltL: c_int = 156;
pub const RGFW_keySuperL: c_int = 157;
pub const RGFW_keyShiftR: c_int = 158;
pub const RGFW_keyControlR: c_int = 159;
pub const RGFW_keyAltR: c_int = 160;
pub const RGFW_keySuperR: c_int = 161;
pub const RGFW_keyUp: c_int = 162;
pub const RGFW_keyDown: c_int = 163;
pub const RGFW_keyLeft: c_int = 164;
pub const RGFW_keyRight: c_int = 165;
pub const RGFW_keyInsert: c_int = 166;
pub const RGFW_keyMenu: c_int = 167;
pub const RGFW_keyEnd: c_int = 168;
pub const RGFW_keyHome: c_int = 169;
pub const RGFW_keyPageUp: c_int = 170;
pub const RGFW_keyPageDown: c_int = 171;
pub const RGFW_keyNumLock: c_int = 172;
pub const RGFW_keyPadSlash: c_int = 173;
pub const RGFW_keyPadMultiply: c_int = 174;
pub const RGFW_keyPadPlus: c_int = 175;
pub const RGFW_keyPadMinus: c_int = 176;
pub const RGFW_keyPadEqual: c_int = 177;
pub const RGFW_keyPadEquals: c_int = 177;
pub const RGFW_keyPad1: c_int = 178;
pub const RGFW_keyPad2: c_int = 179;
pub const RGFW_keyPad3: c_int = 180;
pub const RGFW_keyPad4: c_int = 181;
pub const RGFW_keyPad5: c_int = 182;
pub const RGFW_keyPad6: c_int = 183;
pub const RGFW_keyPad7: c_int = 184;
pub const RGFW_keyPad8: c_int = 185;
pub const RGFW_keyPad9: c_int = 186;
pub const RGFW_keyPad0: c_int = 187;
pub const RGFW_keyPadPeriod: c_int = 188;
pub const RGFW_keyPadReturn: c_int = 189;
pub const RGFW_keyScrollLock: c_int = 190;
pub const RGFW_keyPrintScreen: c_int = 191;
pub const RGFW_keyPause: c_int = 192;
pub const RGFW_keyWorld1: c_int = 193;
pub const RGFW_keyWorld2: c_int = 194;
pub const RGFW_keyLast: c_int = 256;
pub const enum_RGFW_key_enum = c_uint;
pub const RGFW_mouseButton = @"u8";
pub const RGFW_mouseLeft: c_int = 0;
pub const RGFW_mouseMiddle: c_int = 1;
pub const RGFW_mouseRight: c_int = 2;
pub const RGFW_mouseMisc1: c_int = 3;
pub const RGFW_mouseMisc2: c_int = 4;
pub const RGFW_mouseMisc3: c_int = 5;
pub const RGFW_mouseMisc4: c_int = 6;
pub const RGFW_mouseMisc5: c_int = 7;
pub const RGFW_mouseFinal: c_int = 8;
pub const enum_RGFW_mouseButton_enum = c_uint;
pub const RGFW_keymod = @"u8";
pub const RGFW_modCapsLock: c_int = 1;
pub const RGFW_modNumLock: c_int = 2;
pub const RGFW_modControl: c_int = 4;
pub const RGFW_modAlt: c_int = 8;
pub const RGFW_modShift: c_int = 16;
pub const RGFW_modSuper: c_int = 32;
pub const RGFW_modScrollLock: c_int = 64;
pub const enum_RGFW_keymod_enum = c_uint;
pub const RGFW_dndActionType = @"u8";
pub const RGFW_dndActionNone: c_int = 0;
pub const RGFW_dndActionEnter: c_int = 1;
pub const RGFW_dndActionMove: c_int = 2;
pub const RGFW_dndActionExit: c_int = 3;
pub const enum_RGFW_dndActionType_enum = c_uint;
pub const RGFW_dataTransferType = @"u8";
pub const RGFW_dataNone: c_int = 0;
pub const RGFW_dataText: c_int = 1;
pub const RGFW_dataFile: c_int = 2;
pub const RGFW_dataURL: c_int = 3;
pub const RGFW_dataImage: c_int = 4;
pub const RGFW_dataUnknown: c_int = 5;
pub const enum_RGFW_dataTransferType_enum = c_uint;
pub const struct_RGFW_dataTransfer = extern struct {
data: [*c]const u8 = null,
length: usize = 0,
type: RGFW_dataTransferType = 0,
pub const RGFW_writeClipboard = __root.RGFW_writeClipboard;
pub const writeClipboard = __root.RGFW_writeClipboard;
};
pub const RGFW_dataTransfer = struct_RGFW_dataTransfer;
pub const struct_RGFW_dataDropNode = extern struct {
data: [*c]const u8 = null,
length: usize = 0,
type: RGFW_dataTransferType = 0,
next: [*c]struct_RGFW_dataDropNode = null,
};
pub const RGFW_dataDropNode = struct_RGFW_dataDropNode;
pub const RGFW_eventType = @"u8";
pub const RGFW_eventNone: c_int = 0;
pub const RGFW_keyPressed: c_int = 1;
pub const RGFW_keyReleased: c_int = 2;
pub const RGFW_keyChar: c_int = 3;
pub const RGFW_mouseButtonPressed: c_int = 4;
pub const RGFW_mouseButtonReleased: c_int = 5;
pub const RGFW_mouseScroll: c_int = 6;
pub const RGFW_mouseMotion: c_int = 7;
pub const RGFW_mouseRawMotion: c_int = 8;
pub const RGFW_mouseEnter: c_int = 9;
pub const RGFW_mouseLeave: c_int = 10;
pub const RGFW_windowMoved: c_int = 11;
pub const RGFW_windowResized: c_int = 12;
pub const RGFW_windowFocusIn: c_int = 13;
pub const RGFW_windowFocusOut: c_int = 14;
pub const RGFW_windowRefresh: c_int = 15;
pub const RGFW_windowClose: c_int = 16;
pub const RGFW_windowMaximized: c_int = 17;
pub const RGFW_windowMinimized: c_int = 18;
pub const RGFW_windowRestored: c_int = 19;
pub const RGFW_dataDrop: c_int = 20;
pub const RGFW_dataDrag: c_int = 21;
pub const RGFW_scaleUpdated: c_int = 22;
pub const RGFW_monitorConnected: c_int = 23;
pub const RGFW_monitorDisconnected: c_int = 24;
pub const RGFW_eventCount: c_int = 25;
pub const RGFW_mousePosChanged: c_int = 7;
pub const enum_RGFW_eventType_enum = c_uint;
pub const RGFW_eventFlag = @"u32";
pub const RGFW_keyPressedFlag: c_int = 2;
pub const RGFW_keyReleasedFlag: c_int = 4;
pub const RGFW_keyCharFlag: c_int = 8;
pub const RGFW_mouseScrollFlag: c_int = 64;
pub const RGFW_mouseButtonPressedFlag: c_int = 16;
pub const RGFW_mouseButtonReleasedFlag: c_int = 32;
pub const RGFW_mouseMotionFlag: c_int = 128;
pub const RGFW_mouseRawMotionFlag: c_int = 256;
pub const RGFW_mouseEnterFlag: c_int = 512;
pub const RGFW_mouseLeaveFlag: c_int = 1024;
pub const RGFW_windowMovedFlag: c_int = 2048;
pub const RGFW_windowResizedFlag: c_int = 4096;
pub const RGFW_windowFocusInFlag: c_int = 8192;
pub const RGFW_windowFocusOutFlag: c_int = 16384;
pub const RGFW_windowRefreshFlag: c_int = 32768;
pub const RGFW_windowMaximizedFlag: c_int = 131072;
pub const RGFW_windowMinimizedFlag: c_int = 262144;
pub const RGFW_windowRestoredFlag: c_int = 524288;
pub const RGFW_scaleUpdatedFlag: c_int = 4194304;
pub const RGFW_windowCloseFlag: c_int = 65536;
pub const RGFW_dataDropFlag: c_int = 1048576;
pub const RGFW_dataDragFlag: c_int = 2097152;
pub const RGFW_monitorConnectedFlag: c_int = 8388608;
pub const RGFW_monitorDisconnectedFlag: c_int = 16777216;
pub const RGFW_mousePosChangedFlag: c_int = 128;
pub const RGFW_keyEventsFlag: c_int = 14;
pub const RGFW_mouseEventsFlag: c_int = 2032;
pub const RGFW_windowEventsFlag: c_int = 5150720;
pub const RGFW_windowFocusEventsFlag: c_int = 24576;
pub const RGFW_dataDragDropEventsFlag: c_int = 3145728;
pub const RGFW_monitorEventsFlag: c_int = 25165824;
pub const RGFW_allEventFlags: c_int = 33554430;
pub const enum_RGFW_eventFlag_enum = c_uint;
pub const struct_RGFW_commonEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
};
pub const RGFW_commonEvent = struct_RGFW_commonEvent;
pub const struct_RGFW_windowFocusEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
state: RGFW_bool = 0,
};
pub const RGFW_windowFocusEvent = struct_RGFW_windowFocusEvent;
pub const struct_RGFW_mouseButtonEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
value: RGFW_mouseButton = 0,
state: RGFW_bool = 0,
};
pub const RGFW_mouseButtonEvent = struct_RGFW_mouseButtonEvent;
pub const struct_RGFW_mouseDeltaEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
x: f32 = 0,
y: f32 = 0,
};
pub const RGFW_mouseDeltaEvent = struct_RGFW_mouseDeltaEvent;
pub const struct_RGFW_mouseMotionEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
x: @"i32" = 0,
y: @"i32" = 0,
inWindow: RGFW_bool = 0,
};
pub const RGFW_mouseMotionEvent = struct_RGFW_mouseMotionEvent;
pub const struct_RGFW_keyEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
value: RGFW_key = 0,
repeat: RGFW_bool = 0,
mod: RGFW_keymod = 0,
state: RGFW_bool = 0,
};
pub const RGFW_keyEvent = struct_RGFW_keyEvent;
pub const struct_RGFW_keyCharEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
value: @"u32" = 0,
};
pub const RGFW_keyCharEvent = struct_RGFW_keyCharEvent;
pub const struct_RGFW_dataDropEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
value: [*c]const RGFW_dataDropNode = null,
};
pub const RGFW_dataDropEvent = struct_RGFW_dataDropEvent;
pub const struct_RGFW_dataDragEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
x: @"i32" = 0,
y: @"i32" = 0,
action: RGFW_dndActionType = 0,
dataType: RGFW_dataTransferType = 0,
};
pub const RGFW_dataDragEvent = struct_RGFW_dataDragEvent;
pub const struct_RGFW_scaleUpdatedEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
x: f32 = 0,
y: f32 = 0,
};
pub const RGFW_scaleUpdatedEvent = struct_RGFW_scaleUpdatedEvent;
pub const struct_RGFW_monitorEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
monitor: [*c]const RGFW_monitor = null,
state: RGFW_bool = 0,
};
pub const RGFW_monitorEvent = struct_RGFW_monitorEvent;
pub const struct_RGFW_windowUpdateEvent = extern struct {
type: RGFW_eventType = 0,
win: ?*RGFW_window = null,
x: @"i32" = 0,
y: @"i32" = 0,
w: @"i32" = 0,
h: @"i32" = 0,
};
pub const RGFW_windowUpdateEvent = struct_RGFW_windowUpdateEvent;
pub const union_RGFW_event = extern union {
type: RGFW_eventType,
common: RGFW_commonEvent,
focus: RGFW_windowFocusEvent,
update: RGFW_windowUpdateEvent,
button: RGFW_mouseButtonEvent,
delta: RGFW_mouseDeltaEvent,
mouse: RGFW_mouseMotionEvent,
key: RGFW_keyEvent,
keyChar: RGFW_keyCharEvent,
drop: RGFW_dataDropEvent,
drag: RGFW_dataDragEvent,
scale: RGFW_scaleUpdatedEvent,
monitor: RGFW_monitorEvent,
pub const RGFW_checkEvent = __root.RGFW_checkEvent;
pub const RGFW_checkQueuedEvent = __root.RGFW_checkQueuedEvent;
pub const RGFW_eventQueuePush = __root.RGFW_eventQueuePush;
pub const RGFW_eventQueuePushAndCall = __root.RGFW_eventQueuePushAndCall;
pub const checkEvent = __root.RGFW_checkEvent;
pub const checkQueuedEvent = __root.RGFW_checkQueuedEvent;
pub const eventQueuePush = __root.RGFW_eventQueuePush;
pub const eventQueuePushAndCall = __root.RGFW_eventQueuePushAndCall;
};
pub const RGFW_event = union_RGFW_event;
pub const RGFW_eventWait = @"i32";
pub const RGFW_eventNoWait: c_int = 0;
pub const RGFW_eventWaitNext: c_int = -1;
pub const enum_RGFW_eventWait_enum = c_int;
pub const RGFW_genericFunc = ?*const fn (e: [*c]const RGFW_event) callconv(.c) void;
pub const struct_RGFW_callbacks = extern struct {
arr: [25]RGFW_genericFunc = @import("std").mem.zeroes([25]RGFW_genericFunc),
};
pub const RGFW_callbacks = struct_RGFW_callbacks;
pub const RGFW_windowFlags = @"u32";
pub const RGFW_windowNoBorder: c_int = 1;
pub const RGFW_windowNoResize: c_int = 2;
pub const RGFW_windowAllowDND: c_int = 4;
pub const RGFW_windowHideMouse: c_int = 8;
pub const RGFW_windowFullscreen: c_int = 16;
pub const RGFW_windowTranslucent: c_int = 32;
pub const RGFW_windowTransparent: c_int = 32;
pub const RGFW_windowCenter: c_int = 64;
pub const RGFW_windowRawMouse: c_int = 128;
pub const RGFW_windowScaleToMonitor: c_int = 256;
pub const RGFW_windowHide: c_int = 512;
pub const RGFW_windowMaximize: c_int = 1024;
pub const RGFW_windowCenterCursor: c_int = 2048;
pub const RGFW_windowFloating: c_int = 4096;
pub const RGFW_windowFocusOnShow: c_int = 8192;
pub const RGFW_windowMinimize: c_int = 16384;
pub const RGFW_windowFocus: c_int = 32768;
pub const RGFW_windowCaptureMouse: c_int = 65536;
pub const RGFW_windowOpenGL: c_int = 131072;
pub const RGFW_windowEGL: c_int = 262144;
pub const RGFW_noDeinitOnClose: c_int = 524288;
pub const RGFW_windowedFullscreen: c_int = 1025;
pub const RGFW_windowCaptureRawMouse: c_int = 65664;
pub const enum_RGFW_windowFlags_enum = c_uint;
pub const RGFW_icon = @"u8";
pub const RGFW_iconTaskbar: c_int = 1;
pub const RGFW_iconWindow: c_int = 2;
pub const RGFW_iconBoth: c_int = 3;
pub const enum_RGFW_icon_enum = c_uint;
pub const RGFW_mouseIcon = @"u8";
pub const RGFW_mouseNormal: c_int = 0;
pub const RGFW_mouseArrow: c_int = 1;
pub const RGFW_mouseIbeam: c_int = 2;
pub const RGFW_mouseText: c_int = 2;
pub const RGFW_mouseCrosshair: c_int = 3;
pub const RGFW_mousePointingHand: c_int = 4;
pub const RGFW_mouseResizeEW: c_int = 5;
pub const RGFW_mouseResizeNS: c_int = 6;
pub const RGFW_mouseResizeNWSE: c_int = 7;
pub const RGFW_mouseResizeNESW: c_int = 8;
pub const RGFW_mouseResizeNW: c_int = 9;
pub const RGFW_mouseResizeN: c_int = 10;
pub const RGFW_mouseResizeNE: c_int = 11;
pub const RGFW_mouseResizeE: c_int = 12;
pub const RGFW_mouseResizeSE: c_int = 13;
pub const RGFW_mouseResizeS: c_int = 14;
pub const RGFW_mouseResizeSW: c_int = 15;
pub const RGFW_mouseResizeW: c_int = 16;
pub const RGFW_mouseResizeAll: c_int = 17;
pub const RGFW_mouseNotAllowed: c_int = 18;
pub const RGFW_mouseWait: c_int = 19;
pub const RGFW_mouseProgress: c_int = 20;
pub const RGFW_mouseIconCount: c_int = 21;
pub const RGFW_mouseIconFinal: c_int = 16;
pub const enum_RGFW_mouseIcon_enum = c_uint;
pub const RGFW_flashRequest = @"u8";
pub const RGFW_flashCancel: c_int = 0;
pub const RGFW_flashBriefly: c_int = 1;
pub const RGFW_flashUntilFocused: c_int = 2;
pub const enum_RGFW_flashRequest_enum = c_uint;
pub const RGFW_debugType = @"u8";
pub const RGFW_typeError: c_int = 0;
pub const RGFW_typeWarning: c_int = 1;
pub const RGFW_typeInfo: c_int = 2;
pub const enum_RGFW_debugType_enum = c_uint;
pub const RGFW_errorCode = @"u8";
pub const RGFW_noError: c_int = 0;
pub const RGFW_errOutOfMemory: c_int = 1;
pub const RGFW_errOpenGLContext: c_int = 2;
pub const RGFW_errEGLContext: c_int = 3;
pub const RGFW_errWayland: c_int = 4;
pub const RGFW_errX11: c_int = 5;
pub const RGFW_errDirectXContext: c_int = 6;
pub const RGFW_errIOKit: c_int = 7;
pub const RGFW_errClipboard: c_int = 8;
pub const RGFW_errFailedFuncLoad: c_int = 9;
pub const RGFW_errBuffer: c_int = 10;
pub const RGFW_errMetal: c_int = 11;
pub const RGFW_errPlatform: c_int = 12;
pub const RGFW_errEventQueue: c_int = 13;
pub const RGFW_infoWindow: c_int = 14;
pub const RGFW_infoBuffer: c_int = 15;
pub const RGFW_infoGlobal: c_int = 16;
pub const RGFW_infoOpenGL: c_int = 17;
pub const RGFW_warningWayland: c_int = 18;
pub const RGFW_warningOpenGL: c_int = 19;
pub const enum_RGFW_errorCode_enum = c_uint;
pub const struct_RGFW_debugInfo = extern struct {
type: RGFW_debugType = 0,
code: RGFW_errorCode = 0,
msg: [*c]const u8 = null,
};
pub const RGFW_debugInfo = struct_RGFW_debugInfo;
pub const RGFW_debugFunc = ?*const fn (info: [*c]const RGFW_debugInfo) callconv(.c) void;
pub const RGFW_proc = ?*const fn () callconv(.c) void;
pub const struct_RGFW_glContext = opaque {
pub const RGFW_glContext_getSourceContext = __root.RGFW_glContext_getSourceContext;
pub const getSourceContext = __root.RGFW_glContext_getSourceContext;
};
pub const RGFW_glContext = struct_RGFW_glContext;
pub const struct_RGFW_eglContext = opaque {};
pub const RGFW_eglContext = struct_RGFW_eglContext;
pub const RGFW_glReleaseBehavior = @"i32";
pub const RGFW_glReleaseFlush: c_int = 0;
pub const RGFW_glReleaseNone: c_int = 1;
pub const enum_RGFW_glReleaseBehavior_enum = c_uint;
pub const RGFW_glProfile = @"i32";
pub const RGFW_glCore: c_int = 0;
pub const RGFW_glForwardCompatibility: c_int = 1;
pub const RGFW_glCompatibility: c_int = 2;
pub const RGFW_glES: c_int = 3;
pub const RGFW_glWeb: c_int = 4;
pub const enum_RGFW_glProfile_enum = c_uint;
pub const RGFW_glRenderer = @"i32";
pub const RGFW_glAccelerated: c_int = 0;
pub const RGFW_glSoftware: c_int = 1;
pub const enum_RGFW_glRenderer_enum = c_uint;
pub const struct_RGFW_glHints = extern struct {
stencil: @"i32" = 0,
samples: @"i32" = 0,
stereo: @"i32" = 0,
auxBuffers: @"i32" = 0,
doubleBuffer: @"i32" = 0,
red: @"i32" = 0,
green: @"i32" = 0,
blue: @"i32" = 0,
alpha: @"i32" = 0,
depth: @"i32" = 0,
accumRed: @"i32" = 0,
accumGreen: @"i32" = 0,
accumBlue: @"i32" = 0,
accumAlpha: @"i32" = 0,
sRGB: RGFW_bool = 0,
robustness: RGFW_bool = 0,
debug: RGFW_bool = 0,
noError: RGFW_bool = 0,
releaseBehavior: RGFW_glReleaseBehavior = 0,
profile: RGFW_glProfile = 0,
major: @"i32" = 0,
minor: @"i32" = 0,
share: ?*RGFW_glContext = null,
shareEGL: ?*RGFW_eglContext = null,
renderer: RGFW_glRenderer = 0,
pub const RGFW_setGlobalHints_OpenGL = __root.RGFW_setGlobalHints_OpenGL;
pub const OpenGL = __root.RGFW_setGlobalHints_OpenGL;
};
pub const RGFW_glHints = struct_RGFW_glHints;
pub extern fn RGFW_alloc(size: usize) ?*anyopaque;
pub extern fn RGFW_free(ptr: ?*anyopaque) void;
pub extern fn RGFW_sizeofWindow() usize;
pub extern fn RGFW_sizeofWindowSrc() usize;
pub extern fn RGFW_useWayland(wayland: RGFW_bool) void;
pub extern fn RGFW_usingWayland() RGFW_bool;
pub extern fn RGFW_getLayer_OSX() ?*anyopaque;
pub extern fn RGFW_getDisplay_X11() ?*anyopaque;
pub const struct_wl_display = opaque {};
pub extern fn RGFW_getDisplay_Wayland() ?*struct_wl_display;
pub extern fn RGFW_setClassName(name: [*c]const u8) void;
pub extern fn RGFW_setXInstName(name: [*c]const u8) void;
pub extern fn RGFW_moveToMacOSResourceDir() void;
pub extern fn RGFW_copyImageData(dest_data: [*c]@"u8", w: @"i32", h: @"i32", dest_format: RGFW_format, src_data: [*c]@"u8", src_format: RGFW_format, func: RGFW_convertImageDataFunc) void;
pub extern fn RGFW_sizeofNativeImage() usize;
pub extern fn RGFW_sizeofSurface() usize;
pub extern fn RGFW_nativeFormat() RGFW_format;
pub extern fn RGFW_createSurface(data: [*c]@"u8", w: @"i32", h: @"i32", format: RGFW_format) ?*RGFW_surface;
pub extern fn RGFW_createSurfacePtr(data: [*c]@"u8", w: @"i32", h: @"i32", format: RGFW_format, surface: ?*RGFW_surface) RGFW_bool;
pub extern fn RGFW_surface_getNativeImage(surface: ?*RGFW_surface) ?*RGFW_nativeImage;
pub extern fn RGFW_surface_free(surface: ?*RGFW_surface) void;
pub extern fn RGFW_surface_freePtr(surface: ?*RGFW_surface) void;
pub extern fn RGFW_createMouse(data: [*c]@"u8", w: @"i32", h: @"i32", format: RGFW_format) ?*RGFW_mouse;
pub extern fn RGFW_createMouseStandard(mouse: RGFW_mouseIcon) ?*RGFW_mouse;
pub extern fn RGFW_freeMouse(mouse: ?*RGFW_mouse) void;
pub extern fn RGFW_monitor_getModes(monitor: [*c]RGFW_monitor, count: [*c]usize) [*c]RGFW_monitorMode;
pub extern fn RGFW_freeModes(modes: [*c]RGFW_monitorMode) void;
pub extern fn RGFW_monitor_getModesPtr(monitor: [*c]RGFW_monitor, modes: [*c][*c]RGFW_monitorMode) usize;
pub extern fn RGFW_monitor_findClosestMode(monitor: [*c]RGFW_monitor, mode: [*c]RGFW_monitorMode, closest: [*c]RGFW_monitorMode) RGFW_bool;
pub extern fn RGFW_monitor_getGammaRamp(monitor: [*c]RGFW_monitor) [*c]RGFW_gammaRamp;
pub extern fn RGFW_freeGammaRamp(ramp: [*c]RGFW_gammaRamp) void;
pub extern fn RGFW_monitor_getGammaRampPtr(monitor: [*c]RGFW_monitor, ramp: [*c]RGFW_gammaRamp) usize;
pub extern fn RGFW_monitor_setGammaRamp(monitor: [*c]RGFW_monitor, ramp: [*c]RGFW_gammaRamp) RGFW_bool;
pub extern fn RGFW_monitor_setGamma(monitor: [*c]RGFW_monitor, gamma: f32) RGFW_bool;
pub extern fn RGFW_monitor_setGammaPtr(monitor: [*c]RGFW_monitor, gamma: f32, ptr: [*c]@"u16", count: usize) RGFW_bool;
pub extern fn RGFW_monitor_getWorkarea(monitor: [*c]RGFW_monitor, x: [*c]@"i32", y: [*c]@"i32", width: [*c]@"i32", height: [*c]@"i32") RGFW_bool;
pub extern fn RGFW_monitor_getPosition(monitor: [*c]RGFW_monitor, x: [*c]@"i32", y: [*c]@"i32") RGFW_bool;
pub extern fn RGFW_monitor_getName(monitor: [*c]RGFW_monitor) [*c]const u8;
pub extern fn RGFW_monitor_getScale(monitor: [*c]RGFW_monitor, x: [*c]f32, y: [*c]f32) RGFW_bool;
pub extern fn RGFW_monitor_getPhysicalSize(monitor: [*c]RGFW_monitor, w: [*c]f32, h: [*c]f32) RGFW_bool;
pub extern fn RGFW_monitor_setUserPtr(monitor: [*c]RGFW_monitor, userPtr: ?*anyopaque) void;
pub extern fn RGFW_monitor_getUserPtr(monitor: [*c]RGFW_monitor) ?*anyopaque;
pub extern fn RGFW_monitor_getMode(monitor: [*c]RGFW_monitor, mode: [*c]RGFW_monitorMode) RGFW_bool;
pub extern fn RGFW_pollMonitors() void;
pub extern fn RGFW_getMonitors(len: [*c]usize) [*c][*c]RGFW_monitor;
pub extern fn RGFW_getMonitorsPtr(max: usize, monitors: [*c][*c]RGFW_monitor, len: [*c]usize) RGFW_bool;
pub extern fn RGFW_getPrimaryMonitor() [*c]RGFW_monitor;
pub extern fn RGFW_monitor_requestMode(mon: [*c]RGFW_monitor, mode: [*c]RGFW_monitorMode, request: RGFW_modeRequest) RGFW_bool;
pub extern fn RGFW_monitor_setMode(mon: [*c]RGFW_monitor, mode: [*c]RGFW_monitorMode) RGFW_bool;
pub extern fn RGFW_monitorModeCompare(mon: [*c]RGFW_monitorMode, mon2: [*c]RGFW_monitorMode, request: RGFW_modeRequest) RGFW_bool;
pub extern fn RGFW_monitor_scaleToWindow(mon: [*c]RGFW_monitor, win: ?*struct_RGFW_window) RGFW_bool;
pub extern fn RGFW_setRawMouseMode(state: RGFW_bool) void;
pub extern fn RGFW_setBuildDND(allow: RGFW_bool) void;
pub extern fn RGFW_waitForEvent(waitMS: @"i32") void;
pub extern fn RGFW_setQueueEvents(queue: RGFW_bool) void;
pub extern fn RGFW_setEventCallback(@"type": RGFW_eventType, func: RGFW_genericFunc) RGFW_genericFunc;
pub extern fn RGFW_setDualEventCallback(@"type": RGFW_eventType, func: RGFW_genericFunc, first: [*c]RGFW_genericFunc, second: [*c]RGFW_genericFunc) void;
pub extern fn RGFW_setAllEventCallbacks(func: RGFW_genericFunc, callbacks: [*c]RGFW_callbacks) void;
pub extern fn RGFW_pollEvents() void;
pub extern fn RGFW_stopCheckEvents() void;
pub extern fn RGFW_checkEvent(event: [*c]RGFW_event) RGFW_bool;
pub extern fn RGFW_checkQueuedEvent(event: [*c]RGFW_event) RGFW_bool;
pub extern fn RGFW_isKeyPressed(key: RGFW_key) RGFW_bool;
pub extern fn RGFW_isKeyReleased(key: RGFW_key) RGFW_bool;
pub extern fn RGFW_isKeyDown(key: RGFW_key) RGFW_bool;
pub extern fn RGFW_isMousePressed(button: RGFW_mouseButton) RGFW_bool;
pub extern fn RGFW_isMouseReleased(button: RGFW_mouseButton) RGFW_bool;
pub extern fn RGFW_isMouseDown(button: RGFW_mouseButton) RGFW_bool;
pub extern fn RGFW_getMouseScroll(x: [*c]f32, y: [*c]f32) void;
pub extern fn RGFW_getMouseVector(x: [*c]f32, y: [*c]f32) void;
pub extern fn RGFW_createWindow(name: [*c]const u8, x: @"i32", y: @"i32", w: @"i32", h: @"i32", flags: RGFW_windowFlags) ?*RGFW_window;
pub extern fn RGFW_createWindowPtr(name: [*c]const u8, x: @"i32", y: @"i32", w: @"i32", h: @"i32", flags: RGFW_windowFlags, win: ?*RGFW_window) ?*RGFW_window;
pub extern fn RGFW_window_createSurface(win: ?*RGFW_window, data: [*c]@"u8", w: @"i32", h: @"i32", format: RGFW_format) ?*RGFW_surface;
pub extern fn RGFW_window_createSurfacePtr(win: ?*RGFW_window, data: [*c]@"u8", w: @"i32", h: @"i32", format: RGFW_format, surface: ?*RGFW_surface) RGFW_bool;
pub extern fn RGFW_surface_setConvertFunc(surface: ?*RGFW_surface, func: RGFW_convertImageDataFunc) void;
pub extern fn RGFW_window_blitSurface(win: ?*RGFW_window, surface: ?*RGFW_surface) void;
pub extern fn RGFW_window_getPosition(win: ?*RGFW_window, x: [*c]@"i32", y: [*c]@"i32") RGFW_bool;
pub extern fn RGFW_window_getSize(win: ?*RGFW_window, w: [*c]@"i32", h: [*c]@"i32") RGFW_bool;
pub extern fn RGFW_window_getSizeInPixels(win: ?*RGFW_window, w: [*c]@"i32", h: [*c]@"i32") RGFW_bool;
pub extern fn RGFW_window_getFlags(win: ?*RGFW_window) @"u32";
pub extern fn RGFW_window_getExitKey(win: ?*RGFW_window) RGFW_key;
pub extern fn RGFW_window_setExitKey(win: ?*RGFW_window, key: RGFW_key) void;
pub extern fn RGFW_window_setEnabledEvents(win: ?*RGFW_window, events: RGFW_eventFlag) void;
pub extern fn RGFW_window_getEnabledEvents(win: ?*RGFW_window) RGFW_eventFlag;
pub extern fn RGFW_window_setDisabledEvents(win: ?*RGFW_window, events: RGFW_eventFlag) void;
pub extern fn RGFW_window_setEventState(win: ?*RGFW_window, event: RGFW_eventFlag, state: RGFW_bool) void;
pub extern fn RGFW_window_getUserPtr(win: ?*RGFW_window) ?*anyopaque;
pub extern fn RGFW_window_setUserPtr(win: ?*RGFW_window, ptr: ?*anyopaque) void;
pub extern fn RGFW_window_getSrc(win: ?*RGFW_window) ?*RGFW_window_src;
pub extern fn RGFW_window_setLayer_OSX(win: ?*RGFW_window, layer: ?*anyopaque) void;
pub extern fn RGFW_window_getView_OSX(win: ?*RGFW_window) ?*anyopaque;
pub extern fn RGFW_window_getWindow_OSX(win: ?*RGFW_window) ?*anyopaque;
pub extern fn RGFW_window_getHWND(win: ?*RGFW_window) ?*anyopaque;
pub extern fn RGFW_window_getHDC(win: ?*RGFW_window) ?*anyopaque;
pub extern fn RGFW_window_getWindow_X11(win: ?*RGFW_window) @"u64";
pub const struct_wl_surface = opaque {};
pub extern fn RGFW_window_getWindow_Wayland(win: ?*RGFW_window) ?*struct_wl_surface;
pub extern fn RGFW_window_setFlags(win: ?*RGFW_window, RGFW_windowFlags) void;
pub extern fn RGFW_window_checkEvent(win: ?*RGFW_window, event: [*c]RGFW_event) RGFW_bool;
pub extern fn RGFW_window_checkQueuedEvent(win: ?*RGFW_window, event: [*c]RGFW_event) RGFW_bool;
pub extern fn RGFW_window_isKeyPressed(win: ?*RGFW_window, key: RGFW_key) RGFW_bool;
pub extern fn RGFW_window_isKeyDown(win: ?*RGFW_window, key: RGFW_key) RGFW_bool;
pub extern fn RGFW_window_isKeyReleased(win: ?*RGFW_window, key: RGFW_key) RGFW_bool;
pub extern fn RGFW_window_isMousePressed(win: ?*RGFW_window, button: RGFW_mouseButton) RGFW_bool;
pub extern fn RGFW_window_isMouseDown(win: ?*RGFW_window, button: RGFW_mouseButton) RGFW_bool;
pub extern fn RGFW_window_isMouseReleased(win: ?*RGFW_window, button: RGFW_mouseButton) RGFW_bool;
pub extern fn RGFW_window_didMouseLeave(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_didMouseEnter(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_isMouseInside(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_isDataDragging(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_getDataDrag(win: ?*RGFW_window, x: [*c]@"i32", y: [*c]@"i32") RGFW_bool;
pub extern fn RGFW_window_didDataDrop(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_getDataDrop(win: ?*RGFW_window) [*c]RGFW_dataDropNode;
pub extern fn RGFW_window_close(win: ?*RGFW_window) void;
pub extern fn RGFW_window_closePtr(win: ?*RGFW_window) void;
pub extern fn RGFW_window_fetchSize(win: ?*RGFW_window, w: [*c]@"i32", h: [*c]@"i32") RGFW_bool;
pub extern fn RGFW_window_move(win: ?*RGFW_window, x: @"i32", y: @"i32") void;
pub extern fn RGFW_window_moveToMonitor(win: ?*RGFW_window, m: [*c]RGFW_monitor) void;
pub extern fn RGFW_window_resize(win: ?*RGFW_window, w: @"i32", h: @"i32") void;
pub extern fn RGFW_window_setAspectRatio(win: ?*RGFW_window, w: @"i32", h: @"i32") void;
pub extern fn RGFW_window_setMinSize(win: ?*RGFW_window, w: @"i32", h: @"i32") void;
pub extern fn RGFW_window_setMaxSize(win: ?*RGFW_window, w: @"i32", h: @"i32") void;
pub extern fn RGFW_window_focus(win: ?*RGFW_window) void;
pub extern fn RGFW_window_isInFocus(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_raise(win: ?*RGFW_window) void;
pub extern fn RGFW_window_maximize(win: ?*RGFW_window) void;
pub extern fn RGFW_window_setFullscreen(win: ?*RGFW_window, fullscreen: RGFW_bool) void;
pub extern fn RGFW_window_center(win: ?*RGFW_window) void;
pub extern fn RGFW_window_minimize(win: ?*RGFW_window) void;
pub extern fn RGFW_window_restore(win: ?*RGFW_window) void;
pub extern fn RGFW_window_setFloating(win: ?*RGFW_window, floating: RGFW_bool) void;
pub extern fn RGFW_window_setOpacity(win: ?*RGFW_window, opacity: @"u8") void;
pub extern fn RGFW_window_setBorder(win: ?*RGFW_window, border: RGFW_bool) void;
pub extern fn RGFW_window_borderless(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_setDND(win: ?*RGFW_window, allow: RGFW_bool) void;
pub extern fn RGFW_window_allowsDND(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_setMousePassthrough(win: ?*RGFW_window, passthrough: RGFW_bool) void;
pub extern fn RGFW_window_setName(win: ?*RGFW_window, name: [*c]const u8) void;
pub extern fn RGFW_window_setIcon(win: ?*RGFW_window, data: [*c]@"u8", w: @"i32", h: @"i32", format: RGFW_format) RGFW_bool;
pub extern fn RGFW_window_setIconEx(win: ?*RGFW_window, data: [*c]@"u8", w: @"i32", h: @"i32", format: RGFW_format, @"type": RGFW_icon) RGFW_bool;
pub extern fn RGFW_window_setMouse(win: ?*RGFW_window, mouse: ?*RGFW_mouse) RGFW_bool;
pub extern fn RGFW_window_setMouseStandard(win: ?*RGFW_window, icon: RGFW_mouseIcon) RGFW_bool;
pub extern fn RGFW_window_setMouseDefault(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_setRawMouseMode(win: ?*RGFW_window, state: RGFW_bool) void;
pub extern fn RGFW_window_captureMouse(win: ?*RGFW_window, state: RGFW_bool) void;
pub extern fn RGFW_window_captureRawMouse(win: ?*RGFW_window, state: RGFW_bool) void;
pub extern fn RGFW_window_isRawMouseMode(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_isCaptured(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_hide(win: ?*RGFW_window) void;
pub extern fn RGFW_window_show(win: ?*RGFW_window) void;
pub extern fn RGFW_window_flash(win: ?*RGFW_window, request: RGFW_flashRequest) void;
pub extern fn RGFW_window_setShouldClose(win: ?*RGFW_window, shouldClose: RGFW_bool) void;
pub extern fn RGFW_getGlobalMouse(x: [*c]@"i32", y: [*c]@"i32") RGFW_bool;
pub extern fn RGFW_window_getMouse(win: ?*RGFW_window, x: [*c]@"i32", y: [*c]@"i32") RGFW_bool;
pub extern fn RGFW_window_showMouse(win: ?*RGFW_window, show: RGFW_bool) void;
pub extern fn RGFW_window_isMouseHidden(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_moveMouse(win: ?*RGFW_window, x: @"i32", y: @"i32") void;
pub extern fn RGFW_window_shouldClose(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_isFullscreen(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_isHidden(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_isMinimized(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_isMaximized(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_isFloating(win: ?*RGFW_window) RGFW_bool;
pub extern fn RGFW_window_scaleToMonitor(win: ?*RGFW_window) void;
pub extern fn RGFW_window_getMonitor(win: ?*RGFW_window) [*c]RGFW_monitor;
pub extern fn RGFW_readClipboard() [*c]const RGFW_dataTransfer;
pub extern fn RGFW_readClipboardPtr(buffer: [*c]@"u8", capacity: usize, data: [*c]RGFW_dataTransfer) RGFW_bool;
pub extern fn RGFW_writeClipboard(data: [*c]const RGFW_dataTransfer) RGFW_bool;
pub extern fn RGFW_setDebugCallback(func: RGFW_debugFunc) RGFW_debugFunc;
pub extern fn RGFW_debugCallback(@"type": RGFW_debugType, code: RGFW_errorCode, msg: [*c]const u8) void;
pub extern fn RGFW_setGlobalHints_OpenGL(hints: [*c]RGFW_glHints) void;
pub extern fn RGFW_resetGlobalHints_OpenGL() void;
pub extern fn RGFW_getGlobalHints_OpenGL() [*c]RGFW_glHints;
pub extern fn RGFW_window_createContext_OpenGL(win: ?*RGFW_window, hints: [*c]RGFW_glHints) ?*RGFW_glContext;
pub extern fn RGFW_window_createContextPtr_OpenGL(win: ?*RGFW_window, ctx: ?*RGFW_glContext, hints: [*c]RGFW_glHints) RGFW_bool;
pub extern fn RGFW_window_getContext_OpenGL(win: ?*RGFW_window) ?*RGFW_glContext;
pub extern fn RGFW_window_deleteContext_OpenGL(win: ?*RGFW_window, ctx: ?*RGFW_glContext) void;
pub extern fn RGFW_window_deleteContextPtr_OpenGL(win: ?*RGFW_window, ctx: ?*RGFW_glContext) void;
pub extern fn RGFW_glContext_getSourceContext(ctx: ?*RGFW_glContext) ?*anyopaque;
pub extern fn RGFW_window_makeCurrentWindow_OpenGL(win: ?*RGFW_window) void;
pub extern fn RGFW_window_makeCurrentContext_OpenGL(win: ?*RGFW_window) void;
pub extern fn RGFW_window_swapBuffers_OpenGL(win: ?*RGFW_window) void;
pub extern fn RGFW_getCurrentContext_OpenGL() ?*anyopaque;
pub extern fn RGFW_getCurrentWindow_OpenGL() ?*RGFW_window;
pub extern fn RGFW_window_swapInterval_OpenGL(win: ?*RGFW_window, swapInterval: @"i32") void;
pub extern fn RGFW_getProcAddress_OpenGL(procname: [*c]const u8) RGFW_proc;
pub extern fn RGFW_extensionSupported_OpenGL(extension: [*c]const u8, len: usize) RGFW_bool;
pub extern fn RGFW_extensionSupportedPlatform_OpenGL(extension: [*c]const u8, len: usize) RGFW_bool;
pub extern fn RGFW_setRootWindow(win: ?*RGFW_window) void;
pub extern fn RGFW_getRootWindow() ?*RGFW_window;
pub extern fn RGFW_eventQueuePush(event: [*c]const RGFW_event) void;
pub extern fn RGFW_eventQueuePushAndCall(event: [*c]const RGFW_event) void;
pub extern fn RGFW_eventQueueFlush() void;
pub extern fn RGFW_eventQueuePop() [*c]RGFW_event;
pub extern fn RGFW_window_eventQueuePop(win: ?*RGFW_window) [*c]RGFW_event;
pub extern fn RGFW_apiKeyToRGFW(keycode: @"u32") RGFW_key;
pub extern fn RGFW_rgfwToApiKey(keycode: RGFW_key) @"u32";
pub extern fn RGFW_physicalToMappedKey(keycode: RGFW_key) RGFW_key;
pub extern fn RGFW_sizeofInfo() usize;
pub extern fn RGFW_init() @"i32";
pub extern fn RGFW_deinit() void;
pub extern fn RGFW_init_ptr(info: ?*RGFW_info) @"i32";
pub extern fn RGFW_deinit_ptr(info: ?*RGFW_info) void;
pub extern fn RGFW_setInfo(info: ?*RGFW_info) void;
pub extern fn RGFW_getInfo() ?*RGFW_info;
pub const __VERSION__ = "Aro aro-zig";
pub const __Aro__ = "";
pub const __STDC__ = @as(c_int, 1);
pub const __STDC_HOSTED__ = @as(c_int, 1);
pub const __STDC_UTF_16__ = @as(c_int, 1);
pub const __STDC_UTF_32__ = @as(c_int, 1);
pub const __STDC_EMBED_NOT_FOUND__ = @as(c_int, 0);
pub const __STDC_EMBED_FOUND__ = @as(c_int, 1);
pub const __STDC_EMBED_EMPTY__ = @as(c_int, 2);
pub const __STDC_VERSION__ = @as(c_long, 201710);
pub const __GNUC__ = @as(c_int, 7);
pub const __GNUC_MINOR__ = @as(c_int, 1);
pub const __GNUC_PATCHLEVEL__ = @as(c_int, 0);
pub const __ARO_EMULATE_NO__ = @as(c_int, 0);
pub const __ARO_EMULATE_CLANG__ = @as(c_int, 1);
pub const __ARO_EMULATE_GCC__ = @as(c_int, 2);
pub const __ARO_EMULATE_MSVC__ = @as(c_int, 3);
pub const __ARO_EMULATE__ = __ARO_EMULATE_GCC__;
pub inline fn __building_module(x: anytype) @TypeOf(@as(c_int, 0)) {
_ = &x;
return @as(c_int, 0);
}
pub const linux = @as(c_int, 1);
pub const __linux = @as(c_int, 1);
pub const __linux__ = @as(c_int, 1);
pub const unix = @as(c_int, 1);
pub const __unix = @as(c_int, 1);
pub const __unix__ = @as(c_int, 1);
pub const __code_model_small__ = @as(c_int, 1);
pub const __amd64__ = @as(c_int, 1);
pub const __amd64 = @as(c_int, 1);
pub const __x86_64__ = @as(c_int, 1);
pub const __x86_64 = @as(c_int, 1);
pub const __SEG_GS = @as(c_int, 1);
pub const __SEG_FS = @as(c_int, 1);
pub const __seg_gs = @compileError("unable to translate macro: undefined identifier `address_space`"); // <builtin>:33:9
pub const __seg_fs = @compileError("unable to translate macro: undefined identifier `address_space`"); // <builtin>:34:9
pub const __LAHF_SAHF__ = @as(c_int, 1);
pub const __AES__ = @as(c_int, 1);
pub const __VAES__ = @as(c_int, 1);
pub const __PCLMUL__ = @as(c_int, 1);
pub const __VPCLMULQDQ__ = @as(c_int, 1);
pub const __LZCNT__ = @as(c_int, 1);
pub const __RDRND__ = @as(c_int, 1);
pub const __FSGSBASE__ = @as(c_int, 1);
pub const __BMI__ = @as(c_int, 1);
pub const __BMI2__ = @as(c_int, 1);
pub const __POPCNT__ = @as(c_int, 1);
pub const __PRFCHW__ = @as(c_int, 1);
pub const __RDSEED__ = @as(c_int, 1);
pub const __ADX__ = @as(c_int, 1);
pub const __MOVBE__ = @as(c_int, 1);
pub const __FMA__ = @as(c_int, 1);
pub const __F16C__ = @as(c_int, 1);
pub const __GFNI__ = @as(c_int, 1);
pub const __SHA__ = @as(c_int, 1);
pub const __FXSR__ = @as(c_int, 1);
pub const __XSAVE__ = @as(c_int, 1);
pub const __XSAVEOPT__ = @as(c_int, 1);
pub const __XSAVEC__ = @as(c_int, 1);
pub const __XSAVES__ = @as(c_int, 1);
pub const __PKU__ = @as(c_int, 1);
pub const __CLFLUSHOPT__ = @as(c_int, 1);
pub const __CLWB__ = @as(c_int, 1);
pub const __SHSTK__ = @as(c_int, 1);
pub const __RDPID__ = @as(c_int, 1);
pub const __WAITPKG__ = @as(c_int, 1);
pub const __MOVDIRI__ = @as(c_int, 1);
pub const __MOVDIR64B__ = @as(c_int, 1);
pub const __PTWRITE__ = @as(c_int, 1);
pub const __INVPCID__ = @as(c_int, 1);
pub const __HRESET__ = @as(c_int, 1);
pub const __AVXVNNI__ = @as(c_int, 1);
pub const __SERIALIZE__ = @as(c_int, 1);
pub const __CRC32__ = @as(c_int, 1);
pub const __AVX2__ = @as(c_int, 1);
pub const __AVX__ = @as(c_int, 1);
pub const __SSE4_2__ = @as(c_int, 1);
pub const __SSE4_1__ = @as(c_int, 1);
pub const __SSSE3__ = @as(c_int, 1);
pub const __SSE3__ = @as(c_int, 1);
pub const __SSE2__ = @as(c_int, 1);
pub const __SSE__ = @as(c_int, 1);
pub const __SSE_MATH__ = @as(c_int, 1);
pub const __MMX__ = @as(c_int, 1);
pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = @as(c_int, 1);
pub const __SIZEOF_FLOAT128__ = @as(c_int, 16);
pub const _LP64 = @as(c_int, 1);
pub const __LP64__ = @as(c_int, 1);
pub const __FLOAT128__ = @as(c_int, 1);
pub const __ORDER_LITTLE_ENDIAN__ = @as(c_int, 1234);
pub const __ORDER_BIG_ENDIAN__ = @as(c_int, 4321);
pub const __ORDER_PDP_ENDIAN__ = @as(c_int, 3412);
pub const __BYTE_ORDER__ = __ORDER_LITTLE_ENDIAN__;
pub const __LITTLE_ENDIAN__ = @as(c_int, 1);
pub const __ELF__ = @as(c_int, 1);
pub const __ATOMIC_RELAXED = @as(c_int, 0);
pub const __ATOMIC_CONSUME = @as(c_int, 1);
pub const __ATOMIC_ACQUIRE = @as(c_int, 2);
pub const __ATOMIC_RELEASE = @as(c_int, 3);
pub const __ATOMIC_ACQ_REL = @as(c_int, 4);
pub const __ATOMIC_SEQ_CST = @as(c_int, 5);
pub const __ATOMIC_BOOL_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_CHAR_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_CHAR16_T_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_CHAR32_T_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_WCHAR_T_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_WINT_T_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_SHORT_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_INT_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_LONG_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_LLONG_LOCK_FREE = @as(c_int, 1);
pub const __ATOMIC_POINTER_LOCK_FREE = @as(c_int, 1);
pub const __WINT_UNSIGNED__ = @as(c_int, 1);
pub const __CHAR_BIT__ = @as(c_int, 8);
pub const __BOOL_WIDTH__ = @as(c_int, 8);
pub const __SCHAR_MAX__ = @as(c_int, 127);
pub const __SCHAR_WIDTH__ = @as(c_int, 8);
pub const __SHRT_MAX__ = @as(c_int, 32767);
pub const __SHRT_WIDTH__ = @as(c_int, 16);
pub const __INT_MAX__ = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const __INT_WIDTH__ = @as(c_int, 32);
pub const __LONG_MAX__ = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const __LONG_WIDTH__ = @as(c_int, 64);
pub const __LONG_LONG_MAX__ = @as(c_longlong, 9223372036854775807);
pub const __LONG_LONG_WIDTH__ = @as(c_int, 64);
pub const __WCHAR_MAX__ = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const __WCHAR_WIDTH__ = @as(c_int, 32);
pub const __WINT_MAX__ = __helpers.promoteIntLiteral(c_uint, 4294967295, .decimal);
pub const __WINT_WIDTH__ = @as(c_int, 32);
pub const __INTMAX_MAX__ = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const __INTMAX_WIDTH__ = @as(c_int, 64);
pub const __SIZE_MAX__ = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const __SIZE_WIDTH__ = @as(c_int, 64);
pub const __UINTMAX_MAX__ = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const __UINTMAX_WIDTH__ = @as(c_int, 64);
pub const __PTRDIFF_MAX__ = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const __PTRDIFF_WIDTH__ = @as(c_int, 64);
pub const __INTPTR_MAX__ = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const __INTPTR_WIDTH__ = @as(c_int, 64);
pub const __UINTPTR_MAX__ = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const __UINTPTR_WIDTH__ = @as(c_int, 64);
pub const __SIG_ATOMIC_MAX__ = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const __SIG_ATOMIC_WIDTH__ = @as(c_int, 32);
pub const __BITINT_MAXWIDTH__ = __helpers.promoteIntLiteral(c_int, 65535, .decimal);
pub const __SIZEOF_FLOAT__ = @as(c_int, 4);
pub const __SIZEOF_DOUBLE__ = @as(c_int, 8);
pub const __SIZEOF_LONG_DOUBLE__ = @as(c_int, 10);
pub const __SIZEOF_SHORT__ = @as(c_int, 2);
pub const __SIZEOF_INT__ = @as(c_int, 4);
pub const __SIZEOF_LONG__ = @as(c_int, 8);
pub const __SIZEOF_LONG_LONG__ = @as(c_int, 8);
pub const __SIZEOF_POINTER__ = @as(c_int, 8);
pub const __SIZEOF_PTRDIFF_T__ = @as(c_int, 8);
pub const __SIZEOF_SIZE_T__ = @as(c_int, 8);
pub const __SIZEOF_WCHAR_T__ = @as(c_int, 4);
pub const __SIZEOF_WINT_T__ = @as(c_int, 4);
pub const __SIZEOF_INT128__ = @as(c_int, 16);
pub const __INTPTR_TYPE__ = c_long;
pub const __UINTPTR_TYPE__ = c_ulong;
pub const __INTMAX_TYPE__ = c_long;
pub const __INTMAX_C_SUFFIX__ = @compileError("unable to translate macro: undefined identifier `L`"); // <builtin>:160:9
pub const __INTMAX_C = __helpers.L_SUFFIX;
pub const __UINTMAX_TYPE__ = c_ulong;
pub const __UINTMAX_C_SUFFIX__ = @compileError("unable to translate macro: undefined identifier `UL`"); // <builtin>:163:9
pub const __UINTMAX_C = __helpers.UL_SUFFIX;
pub const __PTRDIFF_TYPE__ = c_long;
pub const __SIZE_TYPE__ = c_ulong;
pub const __WCHAR_TYPE__ = c_int;
pub const __WINT_TYPE__ = c_uint;
pub const __CHAR16_TYPE__ = c_ushort;
pub const __CHAR32_TYPE__ = c_uint;
pub const __INT8_TYPE__ = i8;
pub const __INT8_FMTd__ = "hhd";
pub const __INT8_FMTi__ = "hhi";
pub const __INT8_C_SUFFIX__ = "";
pub inline fn __INT8_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub const __INT16_TYPE__ = c_short;
pub const __INT16_FMTd__ = "hd";
pub const __INT16_FMTi__ = "hi";
pub const __INT16_C_SUFFIX__ = "";
pub inline fn __INT16_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub const __INT32_TYPE__ = c_int;
pub const __INT32_FMTd__ = "d";
pub const __INT32_FMTi__ = "i";
pub const __INT32_C_SUFFIX__ = "";
pub inline fn __INT32_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub const __INT64_TYPE__ = c_long;
pub const __INT64_FMTd__ = "ld";
pub const __INT64_FMTi__ = "li";
pub const __INT64_C_SUFFIX__ = @compileError("unable to translate macro: undefined identifier `L`"); // <builtin>:189:9
pub const __INT64_C = __helpers.L_SUFFIX;
pub const __UINT8_TYPE__ = u8;
pub const __UINT8_FMTo__ = "hho";
pub const __UINT8_FMTu__ = "hhu";
pub const __UINT8_FMTx__ = "hhx";
pub const __UINT8_FMTX__ = "hhX";
pub const __UINT8_C_SUFFIX__ = "";
pub inline fn __UINT8_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub const __UINT8_MAX__ = @as(c_int, 255);
pub const __INT8_MAX__ = @as(c_int, 127);
pub const __UINT16_TYPE__ = c_ushort;
pub const __UINT16_FMTo__ = "ho";
pub const __UINT16_FMTu__ = "hu";
pub const __UINT16_FMTx__ = "hx";
pub const __UINT16_FMTX__ = "hX";
pub const __UINT16_C_SUFFIX__ = "";
pub inline fn __UINT16_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub const __UINT16_MAX__ = __helpers.promoteIntLiteral(c_int, 65535, .decimal);
pub const __INT16_MAX__ = @as(c_int, 32767);
pub const __UINT32_TYPE__ = c_uint;
pub const __UINT32_FMTo__ = "o";
pub const __UINT32_FMTu__ = "u";
pub const __UINT32_FMTx__ = "x";
pub const __UINT32_FMTX__ = "X";
pub const __UINT32_C_SUFFIX__ = @compileError("unable to translate macro: undefined identifier `U`"); // <builtin>:214:9
pub const __UINT32_C = __helpers.U_SUFFIX;
pub const __UINT32_MAX__ = __helpers.promoteIntLiteral(c_uint, 4294967295, .decimal);
pub const __INT32_MAX__ = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const __UINT64_TYPE__ = c_ulong;
pub const __UINT64_FMTo__ = "lo";
pub const __UINT64_FMTu__ = "lu";
pub const __UINT64_FMTx__ = "lx";
pub const __UINT64_FMTX__ = "lX";
pub const __UINT64_C_SUFFIX__ = @compileError("unable to translate macro: undefined identifier `UL`"); // <builtin>:223:9
pub const __UINT64_C = __helpers.UL_SUFFIX;
pub const __UINT64_MAX__ = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const __INT64_MAX__ = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const __INT_LEAST8_TYPE__ = i8;
pub const __INT_LEAST8_MAX__ = @as(c_int, 127);
pub const __INT_LEAST8_WIDTH__ = @as(c_int, 8);
pub const INT_LEAST8_FMTd__ = "hhd";
pub const INT_LEAST8_FMTi__ = "hhi";
pub const __UINT_LEAST8_TYPE__ = u8;
pub const __UINT_LEAST8_MAX__ = @as(c_int, 255);
pub const UINT_LEAST8_FMTo__ = "hho";
pub const UINT_LEAST8_FMTu__ = "hhu";
pub const UINT_LEAST8_FMTx__ = "hhx";
pub const UINT_LEAST8_FMTX__ = "hhX";
pub const __INT_FAST8_TYPE__ = i8;
pub const __INT_FAST8_MAX__ = @as(c_int, 127);
pub const __INT_FAST8_WIDTH__ = @as(c_int, 8);
pub const INT_FAST8_FMTd__ = "hhd";
pub const INT_FAST8_FMTi__ = "hhi";
pub const __UINT_FAST8_TYPE__ = u8;
pub const __UINT_FAST8_MAX__ = @as(c_int, 255);
pub const UINT_FAST8_FMTo__ = "hho";
pub const UINT_FAST8_FMTu__ = "hhu";
pub const UINT_FAST8_FMTx__ = "hhx";
pub const UINT_FAST8_FMTX__ = "hhX";
pub const __INT_LEAST16_TYPE__ = c_short;
pub const __INT_LEAST16_MAX__ = @as(c_int, 32767);
pub const __INT_LEAST16_WIDTH__ = @as(c_int, 16);
pub const INT_LEAST16_FMTd__ = "hd";
pub const INT_LEAST16_FMTi__ = "hi";
pub const __UINT_LEAST16_TYPE__ = c_ushort;
pub const __UINT_LEAST16_MAX__ = __helpers.promoteIntLiteral(c_int, 65535, .decimal);
pub const UINT_LEAST16_FMTo__ = "ho";
pub const UINT_LEAST16_FMTu__ = "hu";
pub const UINT_LEAST16_FMTx__ = "hx";
pub const UINT_LEAST16_FMTX__ = "hX";
pub const __INT_FAST16_TYPE__ = c_short;
pub const __INT_FAST16_MAX__ = @as(c_int, 32767);
pub const __INT_FAST16_WIDTH__ = @as(c_int, 16);
pub const INT_FAST16_FMTd__ = "hd";
pub const INT_FAST16_FMTi__ = "hi";
pub const __UINT_FAST16_TYPE__ = c_ushort;
pub const __UINT_FAST16_MAX__ = __helpers.promoteIntLiteral(c_int, 65535, .decimal);
pub const UINT_FAST16_FMTo__ = "ho";
pub const UINT_FAST16_FMTu__ = "hu";
pub const UINT_FAST16_FMTx__ = "hx";
pub const UINT_FAST16_FMTX__ = "hX";
pub const __INT_LEAST32_TYPE__ = c_int;
pub const __INT_LEAST32_MAX__ = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const __INT_LEAST32_WIDTH__ = @as(c_int, 32);
pub const INT_LEAST32_FMTd__ = "d";
pub const INT_LEAST32_FMTi__ = "i";
pub const __UINT_LEAST32_TYPE__ = c_uint;
pub const __UINT_LEAST32_MAX__ = __helpers.promoteIntLiteral(c_uint, 4294967295, .decimal);
pub const UINT_LEAST32_FMTo__ = "o";
pub const UINT_LEAST32_FMTu__ = "u";
pub const UINT_LEAST32_FMTx__ = "x";
pub const UINT_LEAST32_FMTX__ = "X";
pub const __INT_FAST32_TYPE__ = c_int;
pub const __INT_FAST32_MAX__ = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const __INT_FAST32_WIDTH__ = @as(c_int, 32);
pub const INT_FAST32_FMTd__ = "d";
pub const INT_FAST32_FMTi__ = "i";
pub const __UINT_FAST32_TYPE__ = c_uint;
pub const __UINT_FAST32_MAX__ = __helpers.promoteIntLiteral(c_uint, 4294967295, .decimal);
pub const UINT_FAST32_FMTo__ = "o";
pub const UINT_FAST32_FMTu__ = "u";
pub const UINT_FAST32_FMTx__ = "x";
pub const UINT_FAST32_FMTX__ = "X";
pub const __INT_LEAST64_TYPE__ = c_long;
pub const __INT_LEAST64_MAX__ = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const __INT_LEAST64_WIDTH__ = @as(c_int, 64);
pub const INT_LEAST64_FMTd__ = "ld";
pub const INT_LEAST64_FMTi__ = "li";
pub const __UINT_LEAST64_TYPE__ = c_ulong;
pub const __UINT_LEAST64_MAX__ = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const UINT_LEAST64_FMTo__ = "lo";
pub const UINT_LEAST64_FMTu__ = "lu";
pub const UINT_LEAST64_FMTx__ = "lx";
pub const UINT_LEAST64_FMTX__ = "lX";
pub const __INT_FAST64_TYPE__ = c_long;
pub const __INT_FAST64_MAX__ = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const __INT_FAST64_WIDTH__ = @as(c_int, 64);
pub const INT_FAST64_FMTd__ = "ld";
pub const INT_FAST64_FMTi__ = "li";
pub const __UINT_FAST64_TYPE__ = c_ulong;
pub const __UINT_FAST64_MAX__ = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const UINT_FAST64_FMTo__ = "lo";
pub const UINT_FAST64_FMTu__ = "lu";
pub const UINT_FAST64_FMTx__ = "lx";
pub const UINT_FAST64_FMTX__ = "lX";
pub const __FLT16_DENORM_MIN__ = @as(f16, 5.9604644775390625e-8);
pub const __FLT16_HAS_DENORM__ = "";
pub const __FLT16_DIG__ = @as(c_int, 3);
pub const __FLT16_DECIMAL_DIG__ = @as(c_int, 5);
pub const __FLT16_EPSILON__ = @as(f16, 9.765625e-4);
pub const __FLT16_HAS_INFINITY__ = "";
pub const __FLT16_HAS_QUIET_NAN__ = "";
pub const __FLT16_MANT_DIG__ = @as(c_int, 11);
pub const __FLT16_MAX_10_EXP__ = @as(c_int, 4);
pub const __FLT16_MAX_EXP__ = @as(c_int, 16);
pub const __FLT16_MAX__ = @as(f16, 6.5504e+4);
pub const __FLT16_MIN_10_EXP__ = -@as(c_int, 4);
pub const __FLT16_MIN_EXP__ = -@as(c_int, 13);
pub const __FLT16_MIN__ = @as(f16, 6.103515625e-5);
pub const __FLT_DENORM_MIN__ = @as(f32, 1.40129846e-45);
pub const __FLT_HAS_DENORM__ = "";
pub const __FLT_DIG__ = @as(c_int, 6);
pub const __FLT_DECIMAL_DIG__ = @as(c_int, 9);
pub const __FLT_EPSILON__ = @as(f32, 1.19209290e-7);
pub const __FLT_HAS_INFINITY__ = "";
pub const __FLT_HAS_QUIET_NAN__ = "";
pub const __FLT_MANT_DIG__ = @as(c_int, 24);
pub const __FLT_MAX_10_EXP__ = @as(c_int, 38);
pub const __FLT_MAX_EXP__ = @as(c_int, 128);
pub const __FLT_MAX__ = @as(f32, 3.40282347e+38);
pub const __FLT_MIN_10_EXP__ = -@as(c_int, 37);
pub const __FLT_MIN_EXP__ = -@as(c_int, 125);
pub const __FLT_MIN__ = @as(f32, 1.17549435e-38);
pub const __DBL_DENORM_MIN__ = @as(f64, 4.9406564584124654e-324);
pub const __DBL_HAS_DENORM__ = "";
pub const __DBL_DIG__ = @as(c_int, 15);
pub const __DBL_DECIMAL_DIG__ = @as(c_int, 17);
pub const __DBL_EPSILON__ = @as(f64, 2.2204460492503131e-16);
pub const __DBL_HAS_INFINITY__ = "";
pub const __DBL_HAS_QUIET_NAN__ = "";
pub const __DBL_MANT_DIG__ = @as(c_int, 53);
pub const __DBL_MAX_10_EXP__ = @as(c_int, 308);
pub const __DBL_MAX_EXP__ = @as(c_int, 1024);
pub const __DBL_MAX__ = @as(f64, 1.7976931348623157e+308);
pub const __DBL_MIN_10_EXP__ = -@as(c_int, 307);
pub const __DBL_MIN_EXP__ = -@as(c_int, 1021);
pub const __DBL_MIN__ = @as(f64, 2.2250738585072014e-308);
pub const __LDBL_DENORM_MIN__ = @as(c_longdouble, 3.64519953188247460253e-4951);
pub const __LDBL_HAS_DENORM__ = "";
pub const __LDBL_DIG__ = @as(c_int, 18);
pub const __LDBL_DECIMAL_DIG__ = @as(c_int, 21);
pub const __LDBL_EPSILON__ = @as(c_longdouble, 1.08420217248550443401e-19);
pub const __LDBL_HAS_INFINITY__ = "";
pub const __LDBL_HAS_QUIET_NAN__ = "";
pub const __LDBL_MANT_DIG__ = @as(c_int, 64);
pub const __LDBL_MAX_10_EXP__ = @as(c_int, 4932);
pub const __LDBL_MAX_EXP__ = @as(c_int, 16384);
pub const __LDBL_MAX__ = @as(c_longdouble, 1.18973149535723176502e+4932);
pub const __LDBL_MIN_10_EXP__ = -@as(c_int, 4931);
pub const __LDBL_MIN_EXP__ = -@as(c_int, 16381);
pub const __LDBL_MIN__ = @as(c_longdouble, 3.36210314311209350626e-4932);
pub const __FLT_EVAL_METHOD__ = @as(c_int, 0);
pub const __FLT_RADIX__ = @as(c_int, 2);
pub const __DECIMAL_DIG__ = __LDBL_DECIMAL_DIG__;
pub const __pic__ = @as(c_int, 2);
pub const __PIC__ = @as(c_int, 2);
pub const __GLIBC_MINOR__ = @as(c_int, 42);
pub const RGFW_OPENGL = @as(c_int, 1);
pub const RGFW_MACOS_X11 = "";
pub const RGFW_X11 = "";
pub const RGFW_UNIX = "";
pub const _POSIX_C_SOURCE = @as(c_long, 199309);
pub const _ASSERT_H = @as(c_int, 1);
pub const _FEATURES_H = @as(c_int, 1);
pub const __KERNEL_STRICT_NAMES = "";
pub inline fn __GNUC_PREREQ(maj: anytype, min: anytype) @TypeOf(((__GNUC__ << @as(c_int, 16)) + __GNUC_MINOR__) >= ((maj << @as(c_int, 16)) + min)) {
_ = &maj;
_ = &min;
return ((__GNUC__ << @as(c_int, 16)) + __GNUC_MINOR__) >= ((maj << @as(c_int, 16)) + min);
}
pub inline fn __glibc_clang_prereq(maj: anytype, min: anytype) @TypeOf(@as(c_int, 0)) {
_ = &maj;
_ = &min;
return @as(c_int, 0);
}
pub const __GLIBC_USE = @compileError("unable to translate macro: undefined identifier `__GLIBC_USE_`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/features.h:191:9
pub const __GLIBC_USE_ISOC2Y = @as(c_int, 0);
pub const __GLIBC_USE_ISOC23 = @as(c_int, 0);
pub const __USE_ISOC11 = @as(c_int, 1);
pub const __USE_ISOC99 = @as(c_int, 1);
pub const __USE_ISOC95 = @as(c_int, 1);
pub const __USE_POSIX = @as(c_int, 1);
pub const __USE_POSIX2 = @as(c_int, 1);
pub const __USE_POSIX199309 = @as(c_int, 1);
pub const __WORDSIZE = @as(c_int, 64);
pub const __WORDSIZE_TIME64_COMPAT32 = @as(c_int, 1);
pub const __SYSCALL_WORDSIZE = @as(c_int, 64);
pub const __TIMESIZE = __WORDSIZE;
pub const __USE_TIME_BITS64 = @as(c_int, 1);
pub const __USE_FORTIFY_LEVEL = @as(c_int, 0);
pub const __GLIBC_USE_DEPRECATED_GETS = @as(c_int, 0);
pub const __GLIBC_USE_DEPRECATED_SCANF = @as(c_int, 0);
pub const __GLIBC_USE_C23_STRTOL = @as(c_int, 0);
pub const _STDC_PREDEF_H = @as(c_int, 1);
pub const __STDC_IEC_559__ = @as(c_int, 1);
pub const __STDC_IEC_60559_BFP__ = @as(c_long, 201404);
pub const __STDC_IEC_559_COMPLEX__ = @as(c_int, 1);
pub const __STDC_IEC_60559_COMPLEX__ = @as(c_long, 201404);
pub const __STDC_ISO_10646__ = @as(c_long, 201706);
pub const __GNU_LIBRARY__ = @as(c_int, 6);
pub const __GLIBC__ = @as(c_int, 2);
pub inline fn __GLIBC_PREREQ(maj: anytype, min: anytype) @TypeOf(((__GLIBC__ << @as(c_int, 16)) + __GLIBC_MINOR__) >= ((maj << @as(c_int, 16)) + min)) {
_ = &maj;
_ = &min;
return ((__GLIBC__ << @as(c_int, 16)) + __GLIBC_MINOR__) >= ((maj << @as(c_int, 16)) + min);
}
pub const _SYS_CDEFS_H = @as(c_int, 1);
pub const __glibc_has_attribute = @compileError("unable to translate macro: undefined identifier `__has_attribute`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:45:10
pub inline fn __glibc_has_builtin(name: anytype) @TypeOf(__builtin.has_builtin(name)) {
_ = &name;
return __builtin.has_builtin(name);
}
pub const __glibc_has_extension = @compileError("unable to translate macro: undefined identifier `__has_extension`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:55:10
pub const __LEAF = @compileError("unable to translate macro: undefined identifier `__leaf__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:65:11
pub const __LEAF_ATTR = @compileError("unable to translate macro: undefined identifier `__leaf__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:66:11
pub const __THROW = @compileError("unable to translate macro: undefined identifier `__nothrow__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:79:11
pub const __THROWNL = @compileError("unable to translate macro: undefined identifier `__nothrow__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:80:11
pub const __NTH = @compileError("unable to translate macro: undefined identifier `__nothrow__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:81:11
pub const __NTHNL = @compileError("unable to translate macro: undefined identifier `__nothrow__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:82:11
pub const __COLD = @compileError("unable to translate macro: undefined identifier `__cold__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:102:11
pub inline fn __P(args: anytype) @TypeOf(args) {
_ = &args;
return args;
}
pub inline fn __PMT(args: anytype) @TypeOf(args) {
_ = &args;
return args;
}
pub const __CONCAT = @compileError("unable to translate C expr: unexpected token '##'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:131:9
pub const __STRING = @compileError("unable to translate C expr: unexpected token ''"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:132:9
pub const __ptr_t = ?*anyopaque;
pub const __BEGIN_DECLS = "";
pub const __END_DECLS = "";
pub const __attribute_overloadable__ = "";
pub inline fn __bos(ptr: anytype) @TypeOf(__builtin.object_size(ptr, __USE_FORTIFY_LEVEL > @as(c_int, 1))) {
_ = &ptr;
return __builtin.object_size(ptr, __USE_FORTIFY_LEVEL > @as(c_int, 1));
}
pub inline fn __bos0(ptr: anytype) @TypeOf(__builtin.object_size(ptr, @as(c_int, 0))) {
_ = &ptr;
return __builtin.object_size(ptr, @as(c_int, 0));
}
pub inline fn __glibc_objsize0(__o: anytype) @TypeOf(__bos0(__o)) {
_ = &__o;
return __bos0(__o);
}
pub inline fn __glibc_objsize(__o: anytype) @TypeOf(__bos(__o)) {
_ = &__o;
return __bos(__o);
}
pub const __warnattr = @compileError("unable to translate macro: undefined identifier `__warning__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:366:10
pub const __errordecl = @compileError("unable to translate macro: undefined identifier `__error__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:367:10
pub const __flexarr = @compileError("unable to translate C expr: unexpected token '['"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:379:10
pub const __glibc_c99_flexarr_available = @as(c_int, 1);
pub const __REDIRECT = @compileError("unable to translate C expr: unexpected token '__asm__'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:410:10
pub const __REDIRECT_NTH = @compileError("unable to translate C expr: unexpected token '__asm__'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:417:11
pub const __REDIRECT_NTHNL = @compileError("unable to translate C expr: unexpected token '__asm__'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:419:11
pub const __ASMNAME = @compileError("unable to translate macro: undefined identifier `__USER_LABEL_PREFIX__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:422:10
pub inline fn __ASMNAME2(prefix: anytype, cname: anytype) @TypeOf(__STRING(prefix) ++ cname) {
_ = &prefix;
_ = &cname;
return __STRING(prefix) ++ cname;
}
pub const __REDIRECT_FORTIFY = __REDIRECT;
pub const __REDIRECT_FORTIFY_NTH = __REDIRECT_NTH;
pub const __attribute_malloc__ = @compileError("unable to translate macro: undefined identifier `__malloc__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:452:10
pub const __attribute_alloc_size__ = @compileError("unable to translate macro: undefined identifier `__alloc_size__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:460:10
pub const __attribute_alloc_align__ = @compileError("unable to translate macro: undefined identifier `__alloc_align__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:469:10
pub const __attribute_pure__ = @compileError("unable to translate macro: undefined identifier `__pure__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:479:10
pub const __attribute_const__ = @compileError("unable to translate C expr: unexpected token '__attribute__'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:486:10
pub const __attribute_maybe_unused__ = @compileError("unable to translate macro: undefined identifier `__unused__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:492:10
pub const __attribute_used__ = @compileError("unable to translate macro: undefined identifier `__used__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:501:10
pub const __attribute_noinline__ = @compileError("unable to translate macro: undefined identifier `__noinline__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:502:10
pub const __attribute_deprecated__ = @compileError("unable to translate macro: undefined identifier `__deprecated__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:510:10
pub const __attribute_deprecated_msg__ = @compileError("unable to translate macro: undefined identifier `__deprecated__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:520:10
pub const __attribute_format_arg__ = @compileError("unable to translate macro: undefined identifier `__format_arg__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:533:10
pub const __attribute_format_strfmon__ = @compileError("unable to translate macro: undefined identifier `__format__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:543:10
pub const __attribute_nonnull__ = @compileError("unable to translate macro: undefined identifier `__nonnull__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:555:11
pub inline fn __nonnull(params: anytype) @TypeOf(__attribute_nonnull__(params)) {
_ = ¶ms;
return __attribute_nonnull__(params);
}
pub const __returns_nonnull = @compileError("unable to translate macro: undefined identifier `__returns_nonnull__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:568:10
pub const __attribute_warn_unused_result__ = @compileError("unable to translate macro: undefined identifier `__warn_unused_result__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:577:10
pub const __wur = "";
pub const __always_inline = @compileError("unable to translate macro: undefined identifier `__always_inline__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:595:10
pub const __attribute_artificial__ = @compileError("unable to translate macro: undefined identifier `__artificial__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:604:10
pub const __extern_inline = @compileError("unable to translate C expr: unexpected token 'extern'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:626:11
pub const __extern_always_inline = @compileError("unable to translate C expr: unexpected token 'extern'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:627:11
pub const __fortify_function = __extern_always_inline ++ __attribute_artificial__;
pub const __va_arg_pack = @compileError("unable to translate macro: undefined identifier `__builtin_va_arg_pack`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:638:10
pub const __va_arg_pack_len = @compileError("unable to translate macro: undefined identifier `__builtin_va_arg_pack_len`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:639:10
pub const __restrict_arr = @compileError("unable to translate C expr: unexpected token '__restrict'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:666:10
pub inline fn __glibc_unlikely(cond: anytype) @TypeOf(__builtin.expect(cond, @as(c_int, 0))) {
_ = &cond;
return __builtin.expect(cond, @as(c_int, 0));
}
pub inline fn __glibc_likely(cond: anytype) @TypeOf(__builtin.expect(cond, @as(c_int, 1))) {
_ = &cond;
return __builtin.expect(cond, @as(c_int, 1));
}
pub const __attribute_nonstring__ = "";
pub inline fn __attribute_copy__(arg: anytype) void {
_ = &arg;
return;
}
pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI = @as(c_int, 0);
pub inline fn __LDBL_REDIR1(name: anytype, proto: anytype, alias: anytype) @TypeOf(name ++ proto) {
_ = &name;
_ = &proto;
_ = &alias;
return name ++ proto;
}
pub inline fn __LDBL_REDIR(name: anytype, proto: anytype) @TypeOf(name ++ proto) {
_ = &name;
_ = &proto;
return name ++ proto;
}
pub inline fn __LDBL_REDIR1_NTH(name: anytype, proto: anytype, alias: anytype) @TypeOf(name ++ proto ++ __THROW) {
_ = &name;
_ = &proto;
_ = &alias;
return name ++ proto ++ __THROW;
}
pub inline fn __LDBL_REDIR_NTH(name: anytype, proto: anytype) @TypeOf(name ++ proto ++ __THROW) {
_ = &name;
_ = &proto;
return name ++ proto ++ __THROW;
}
pub inline fn __LDBL_REDIR2_DECL(name: anytype) void {
_ = &name;
return;
}
pub inline fn __LDBL_REDIR_DECL(name: anytype) void {
_ = &name;
return;
}
pub inline fn __REDIRECT_LDBL(name: anytype, proto: anytype, alias: anytype) @TypeOf(__REDIRECT(name, proto, alias)) {
_ = &name;
_ = &proto;
_ = &alias;
return __REDIRECT(name, proto, alias);
}
pub inline fn __REDIRECT_NTH_LDBL(name: anytype, proto: anytype, alias: anytype) @TypeOf(__REDIRECT_NTH(name, proto, alias)) {
_ = &name;
_ = &proto;
_ = &alias;
return __REDIRECT_NTH(name, proto, alias);
}
pub const __glibc_macro_warning1 = @compileError("unable to translate macro: undefined identifier `_Pragma`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:807:10
pub const __glibc_macro_warning = @compileError("unable to translate macro: undefined identifier `GCC`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:808:10
pub const __HAVE_GENERIC_SELECTION = @as(c_int, 1);
pub inline fn __fortified_attr_access(a: anytype, o: anytype, s: anytype) void {
_ = &a;
_ = &o;
_ = &s;
return;
}
pub inline fn __attr_access(x: anytype) void {
_ = &x;
return;
}
pub inline fn __attr_access_none(argno: anytype) void {
_ = &argno;
return;
}
pub inline fn __attr_dealloc(dealloc: anytype, argno: anytype) void {
_ = &dealloc;
_ = &argno;
return;
}
pub const __attr_dealloc_free = "";
pub const __attribute_returns_twice__ = @compileError("unable to translate macro: undefined identifier `__returns_twice__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:872:10
pub const __attribute_struct_may_alias__ = @compileError("unable to translate macro: undefined identifier `__may_alias__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/sys/cdefs.h:881:10
pub const __stub___compat_bdflush = "";
pub const __stub_chflags = "";
pub const __stub_fchflags = "";
pub const __stub_gtty = "";
pub const __stub_revoke = "";
pub const __stub_setlogin = "";
pub const __stub_sigreturn = "";
pub const __stub_stty = "";
pub const __ASSERT_VOID_CAST = @compileError("unable to translate C expr: unexpected token ''"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/assert.h:40:10
pub const assert = @compileError("unable to translate macro: undefined identifier `__FILE__`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/assert.h:115:11
pub const __ASSERT_FUNCTION = @compileError("unable to translate C expr: unexpected token '__extension__'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/assert.h:137:12
pub const static_assert = @compileError("unable to translate C expr: unexpected token '_Static_assert'"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/assert.h:155:10
pub const RGFW_ASSERT = assert;
pub const RGFW_STATIC_ASSERT = @compileError("unable to translate macro: undefined identifier `RGFW_check_`"); // include/RGFW.h:237:10
pub const _STDIO_H = @as(c_int, 1);
pub const __need_size_t = "";
pub const __need_NULL = "";
pub const __STDC_VERSION_STDDEF_H__ = @as(c_long, 202311);
pub const NULL = __helpers.cast(?*anyopaque, @as(c_int, 0));
pub const offsetof = @compileError("unable to translate macro: undefined identifier `__builtin_offsetof`"); // /nix/store/5x5y75rc3l43ic0lwal6wzk7wi1ga3m1-zig-0.16.0/lib/zig/compiler/aro/include/stddef.h:18:9
pub const __need___va_list = "";
pub const __STDC_VERSION_STDARG_H__ = @as(c_int, 0);
pub const va_start = @compileError("unable to translate macro: undefined identifier `__builtin_va_start`"); // /nix/store/5x5y75rc3l43ic0lwal6wzk7wi1ga3m1-zig-0.16.0/lib/zig/compiler/aro/include/stdarg.h:12:9
pub const va_end = @compileError("unable to translate macro: undefined identifier `__builtin_va_end`"); // /nix/store/5x5y75rc3l43ic0lwal6wzk7wi1ga3m1-zig-0.16.0/lib/zig/compiler/aro/include/stdarg.h:14:9
pub const va_arg = @compileError("unable to translate macro: undefined identifier `__builtin_va_arg`"); // /nix/store/5x5y75rc3l43ic0lwal6wzk7wi1ga3m1-zig-0.16.0/lib/zig/compiler/aro/include/stdarg.h:15:9
pub const __va_copy = @compileError("unable to translate macro: undefined identifier `__builtin_va_copy`"); // /nix/store/5x5y75rc3l43ic0lwal6wzk7wi1ga3m1-zig-0.16.0/lib/zig/compiler/aro/include/stdarg.h:18:9
pub const va_copy = @compileError("unable to translate macro: undefined identifier `__builtin_va_copy`"); // /nix/store/5x5y75rc3l43ic0lwal6wzk7wi1ga3m1-zig-0.16.0/lib/zig/compiler/aro/include/stdarg.h:22:9
pub const __GNUC_VA_LIST = @as(c_int, 1);
pub const _BITS_TYPES_H = @as(c_int, 1);
pub const __S16_TYPE = c_short;
pub const __U16_TYPE = c_ushort;
pub const __S32_TYPE = c_int;
pub const __U32_TYPE = c_uint;
pub const __SLONGWORD_TYPE = c_long;
pub const __ULONGWORD_TYPE = c_ulong;
pub const __SQUAD_TYPE = c_long;
pub const __UQUAD_TYPE = c_ulong;
pub const __SWORD_TYPE = c_long;
pub const __UWORD_TYPE = c_ulong;
pub const __SLONG32_TYPE = c_int;
pub const __ULONG32_TYPE = c_uint;
pub const __S64_TYPE = c_long;
pub const __U64_TYPE = c_ulong;
pub const _BITS_TYPESIZES_H = @as(c_int, 1);
pub const __SYSCALL_SLONG_TYPE = __SLONGWORD_TYPE;
pub const __SYSCALL_ULONG_TYPE = __ULONGWORD_TYPE;
pub const __DEV_T_TYPE = __UQUAD_TYPE;
pub const __UID_T_TYPE = __U32_TYPE;
pub const __GID_T_TYPE = __U32_TYPE;
pub const __INO_T_TYPE = __SYSCALL_ULONG_TYPE;
pub const __INO64_T_TYPE = __UQUAD_TYPE;
pub const __MODE_T_TYPE = __U32_TYPE;
pub const __NLINK_T_TYPE = __SYSCALL_ULONG_TYPE;
pub const __FSWORD_T_TYPE = __SYSCALL_SLONG_TYPE;
pub const __OFF_T_TYPE = __SYSCALL_SLONG_TYPE;
pub const __OFF64_T_TYPE = __SQUAD_TYPE;
pub const __PID_T_TYPE = __S32_TYPE;
pub const __RLIM_T_TYPE = __SYSCALL_ULONG_TYPE;
pub const __RLIM64_T_TYPE = __UQUAD_TYPE;
pub const __BLKCNT_T_TYPE = __SYSCALL_SLONG_TYPE;
pub const __BLKCNT64_T_TYPE = __SQUAD_TYPE;
pub const __FSBLKCNT_T_TYPE = __SYSCALL_ULONG_TYPE;
pub const __FSBLKCNT64_T_TYPE = __UQUAD_TYPE;
pub const __FSFILCNT_T_TYPE = __SYSCALL_ULONG_TYPE;
pub const __FSFILCNT64_T_TYPE = __UQUAD_TYPE;
pub const __ID_T_TYPE = __U32_TYPE;
pub const __CLOCK_T_TYPE = __SYSCALL_SLONG_TYPE;
pub const __TIME_T_TYPE = __SYSCALL_SLONG_TYPE;
pub const __USECONDS_T_TYPE = __U32_TYPE;
pub const __SUSECONDS_T_TYPE = __SYSCALL_SLONG_TYPE;
pub const __SUSECONDS64_T_TYPE = __SQUAD_TYPE;
pub const __DADDR_T_TYPE = __S32_TYPE;
pub const __KEY_T_TYPE = __S32_TYPE;
pub const __CLOCKID_T_TYPE = __S32_TYPE;
pub const __TIMER_T_TYPE = ?*anyopaque;
pub const __BLKSIZE_T_TYPE = __SYSCALL_SLONG_TYPE;
pub const __FSID_T_TYPE = @compileError("unable to translate macro: undefined identifier `__val`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/typesizes.h:73:9
pub const __SSIZE_T_TYPE = __SWORD_TYPE;
pub const __CPU_MASK_TYPE = __SYSCALL_ULONG_TYPE;
pub const __OFF_T_MATCHES_OFF64_T = @as(c_int, 1);
pub const __INO_T_MATCHES_INO64_T = @as(c_int, 1);
pub const __RLIM_T_MATCHES_RLIM64_T = @as(c_int, 1);
pub const __STATFS_MATCHES_STATFS64 = @as(c_int, 1);
pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 = @as(c_int, 1);
pub const __FD_SETSIZE = @as(c_int, 1024);
pub const _BITS_TIME64_H = @as(c_int, 1);
pub const __TIME64_T_TYPE = __TIME_T_TYPE;
pub const _____fpos_t_defined = @as(c_int, 1);
pub const ____mbstate_t_defined = @as(c_int, 1);
pub const _____fpos64_t_defined = @as(c_int, 1);
pub const ____FILE_defined = @as(c_int, 1);
pub const __FILE_defined = @as(c_int, 1);
pub const __struct_FILE_defined = @as(c_int, 1);
pub const __getc_unlocked_body = @compileError("TODO postfix inc/dec expr"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/types/struct_FILE.h:113:9
pub const __putc_unlocked_body = @compileError("TODO postfix inc/dec expr"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/types/struct_FILE.h:117:9
pub const _IO_EOF_SEEN = @as(c_int, 0x0010);
pub inline fn __feof_unlocked_body(_fp: anytype) @TypeOf((_fp.*._flags & _IO_EOF_SEEN) != @as(c_int, 0)) {
_ = &_fp;
return (_fp.*._flags & _IO_EOF_SEEN) != @as(c_int, 0);
}
pub const _IO_ERR_SEEN = @as(c_int, 0x0020);
pub inline fn __ferror_unlocked_body(_fp: anytype) @TypeOf((_fp.*._flags & _IO_ERR_SEEN) != @as(c_int, 0)) {
_ = &_fp;
return (_fp.*._flags & _IO_ERR_SEEN) != @as(c_int, 0);
}
pub const _IO_USER_LOCK = __helpers.promoteIntLiteral(c_int, 0x8000, .hex);
pub const _IOFBF = @as(c_int, 0);
pub const _IOLBF = @as(c_int, 1);
pub const _IONBF = @as(c_int, 2);
pub const BUFSIZ = @as(c_int, 8192);
pub const EOF = -@as(c_int, 1);
pub const SEEK_SET = @as(c_int, 0);
pub const SEEK_CUR = @as(c_int, 1);
pub const SEEK_END = @as(c_int, 2);
pub const L_tmpnam = @as(c_int, 20);
pub const TMP_MAX = __helpers.promoteIntLiteral(c_int, 238328, .decimal);
pub const _BITS_STDIO_LIM_H = @as(c_int, 1);
pub const FILENAME_MAX = @as(c_int, 4096);
pub const L_ctermid = @as(c_int, 9);
pub const L_cuserid = @as(c_int, 9);
pub const FOPEN_MAX = @as(c_int, 16);
pub const __attr_dealloc_fclose = __attr_dealloc(fclose, @as(c_int, 1));
pub const _BITS_FLOATN_H = "";
pub const __HAVE_FLOAT128 = @as(c_int, 1);
pub const __HAVE_DISTINCT_FLOAT128 = @as(c_int, 1);
pub const __HAVE_FLOAT64X = @as(c_int, 1);
pub const __HAVE_FLOAT64X_LONG_DOUBLE = @as(c_int, 1);
pub const __f128 = @compileError("unable to translate macro: undefined identifier `f128`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn.h:72:12
pub const __CFLOAT128 = @compileError("unable to translate: invalid numeric type"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn.h:86:12
pub const _BITS_FLOATN_COMMON_H = "";
pub const __HAVE_FLOAT16 = @as(c_int, 0);
pub const __HAVE_FLOAT32 = @as(c_int, 1);
pub const __HAVE_FLOAT64 = @as(c_int, 1);
pub const __HAVE_FLOAT32X = @as(c_int, 1);
pub const __HAVE_FLOAT128X = @as(c_int, 0);
pub const __HAVE_DISTINCT_FLOAT16 = __HAVE_FLOAT16;
pub const __HAVE_DISTINCT_FLOAT32 = @as(c_int, 0);
pub const __HAVE_DISTINCT_FLOAT64 = @as(c_int, 0);
pub const __HAVE_DISTINCT_FLOAT32X = @as(c_int, 0);
pub const __HAVE_DISTINCT_FLOAT64X = @as(c_int, 0);
pub const __HAVE_DISTINCT_FLOAT128X = __HAVE_FLOAT128X;
pub const __HAVE_FLOAT128_UNLIKE_LDBL = (__HAVE_DISTINCT_FLOAT128 != 0) and (__LDBL_MANT_DIG__ != @as(c_int, 113));
pub const __HAVE_FLOATN_NOT_TYPEDEF = @as(c_int, 1);
pub const __f32 = @compileError("unable to translate macro: undefined identifier `f32`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn-common.h:93:12
pub const __f64 = @compileError("unable to translate macro: undefined identifier `f64`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn-common.h:105:12
pub const __f32x = @compileError("unable to translate macro: undefined identifier `f32x`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn-common.h:113:12
pub const __f64x = @compileError("unable to translate macro: undefined identifier `f64x`"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn-common.h:125:12
pub const __CFLOAT32 = @compileError("unable to translate: invalid numeric type"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn-common.h:151:12
pub const __CFLOAT64 = @compileError("unable to translate: invalid numeric type"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn-common.h:163:12
pub const __CFLOAT32X = @compileError("unable to translate: invalid numeric type"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn-common.h:171:12
pub const __CFLOAT64X = @compileError("unable to translate: invalid numeric type"); // /nix/store/fbbw928argckfii0j322346ihmllg7a7-glibc-2.42-61-dev/include/bits/floatn-common.h:183:12
pub const RGFW_SNPRINTF = snprintf;
pub const RGFW_USERPTR = NULL;
pub const RGFW_UNUSED = __helpers.DISCARD;
pub inline fn RGFW_ROUND(x: anytype) @"i32" {
_ = &x;
return __helpers.cast(@"i32", if (__helpers.cast(bool, x >= @as(c_int, 0))) x + @as(f32, 0.5) else x - @as(f32, 0.5));
}
pub inline fn RGFW_ROUNDF(x: anytype) f32 {
_ = &x;
return __helpers.cast(f32, __helpers.cast(@"i32", x + (if (__helpers.cast(bool, x < @as(f32, 0.0))) -@as(f32, 0.5) else @as(f32, 0.5))));
}
pub inline fn RGFW_MIN(x: anytype, y: anytype) @TypeOf(if (__helpers.cast(bool, x < y)) x else y) {
_ = &x;
_ = &y;
return if (__helpers.cast(bool, x < y)) x else y;
}
pub const __need_wchar_t = "";
pub const _STDLIB_H = @as(c_int, 1);
pub const __ldiv_t_defined = @as(c_int, 1);
pub const __lldiv_t_defined = @as(c_int, 1);
pub const RAND_MAX = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const EXIT_FAILURE = @as(c_int, 1);
pub const EXIT_SUCCESS = @as(c_int, 0);
pub const MB_CUR_MAX = __ctype_get_mb_cur_max();
pub const __COMPAR_FN_T = "";
pub const RGFW_ALLOC = malloc;
pub const RGFW_FREE = free;
pub const _STRING_H = @as(c_int, 1);
pub inline fn RGFW_MEMZERO(ptr: anytype, num: anytype) @TypeOf(memset(ptr, @as(c_int, 0), num)) {
_ = &ptr;
_ = #
return memset(ptr, @as(c_int, 0), num);
}
pub inline fn RGFW_MEMCPY(dist: anytype, src: anytype, len: anytype) @TypeOf(memcpy(dist, src, len)) {
_ = &dist;
_ = &src;
_ = &len;
return memcpy(dist, src, len);
}
pub inline fn RGFW_STRNCMP(s1: anytype, s2: anytype, max: anytype) @TypeOf(strncmp(s1, s2, max)) {
_ = &s1;
_ = &s2;
_ = &max;
return strncmp(s1, s2, max);
}
pub inline fn RGFW_STRNCPY(dist: anytype, src: anytype, len: anytype) @TypeOf(strncpy(dist, src, len)) {
_ = &dist;
_ = &src;
_ = &len;
return strncpy(dist, src, len);
}
pub inline fn RGFW_STRSTR(str: anytype, substr: anytype) @TypeOf(strstr(str, substr)) {
_ = &str;
_ = &substr;
return strstr(str, substr);
}
pub inline fn RGFW_STRTOL(str: anytype, endptr: anytype, base: anytype) @TypeOf(strtol(str, endptr, base)) {
_ = &str;
_ = &endptr;
_ = &base;
return strtol(str, endptr, base);
}
pub inline fn RGFW_ATOF(num: anytype) @TypeOf(atof(num)) {
_ = #
return atof(num);
}
pub const RGFW_MAX_EVENTS = @as(c_int, 32);
pub const RGFW_PREALLOCATED_MONITORS = @as(c_int, 6);
pub const RGFW_COCOA_FRAME_NAME = NULL;
pub const RGFWDEF = @compileError("unable to translate C expr: unexpected token 'inline'"); // include/RGFW.h:355:11
pub const RGFW_HEADER = "";
pub const __CLANG_STDINT_H = "";
pub const _STDINT_H = @as(c_int, 1);
pub const __GLIBC_USE_LIB_EXT2 = @as(c_int, 0);
pub const __GLIBC_USE_IEC_60559_BFP_EXT = @as(c_int, 0);
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 = @as(c_int, 0);
pub const __GLIBC_USE_IEC_60559_EXT = @as(c_int, 0);
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT = @as(c_int, 0);
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 = @as(c_int, 0);
pub const __GLIBC_USE_IEC_60559_TYPES_EXT = @as(c_int, 0);
pub const _BITS_WCHAR_H = @as(c_int, 1);
pub const __WCHAR_MAX = __WCHAR_MAX__;
pub const __WCHAR_MIN = -__WCHAR_MAX - @as(c_int, 1);
pub const _BITS_STDINT_INTN_H = @as(c_int, 1);
pub const _BITS_STDINT_UINTN_H = @as(c_int, 1);
pub const _BITS_STDINT_LEAST_H = @as(c_int, 1);
pub const __intptr_t_defined = "";
pub const INT8_MIN = -@as(c_int, 128);
pub const INT16_MIN = -@as(c_int, 32767) - @as(c_int, 1);
pub const INT32_MIN = -__helpers.promoteIntLiteral(c_int, 2147483647, .decimal) - @as(c_int, 1);
pub const INT64_MIN = -__INT64_C(__helpers.promoteIntLiteral(c_int, 9223372036854775807, .decimal)) - @as(c_int, 1);
pub const INT8_MAX = @as(c_int, 127);
pub const INT16_MAX = @as(c_int, 32767);
pub const INT32_MAX = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const INT64_MAX = __INT64_C(__helpers.promoteIntLiteral(c_int, 9223372036854775807, .decimal));
pub const UINT8_MAX = @as(c_int, 255);
pub const UINT16_MAX = __helpers.promoteIntLiteral(c_int, 65535, .decimal);
pub const UINT32_MAX = __helpers.promoteIntLiteral(c_uint, 4294967295, .decimal);
pub const UINT64_MAX = __UINT64_C(__helpers.promoteIntLiteral(c_int, 18446744073709551615, .decimal));
pub const INT_LEAST8_MIN = -@as(c_int, 128);
pub const INT_LEAST16_MIN = -@as(c_int, 32767) - @as(c_int, 1);
pub const INT_LEAST32_MIN = -__helpers.promoteIntLiteral(c_int, 2147483647, .decimal) - @as(c_int, 1);
pub const INT_LEAST64_MIN = -__INT64_C(__helpers.promoteIntLiteral(c_int, 9223372036854775807, .decimal)) - @as(c_int, 1);
pub const INT_LEAST8_MAX = @as(c_int, 127);
pub const INT_LEAST16_MAX = @as(c_int, 32767);
pub const INT_LEAST32_MAX = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const INT_LEAST64_MAX = __INT64_C(__helpers.promoteIntLiteral(c_int, 9223372036854775807, .decimal));
pub const UINT_LEAST8_MAX = @as(c_int, 255);
pub const UINT_LEAST16_MAX = __helpers.promoteIntLiteral(c_int, 65535, .decimal);
pub const UINT_LEAST32_MAX = __helpers.promoteIntLiteral(c_uint, 4294967295, .decimal);
pub const UINT_LEAST64_MAX = __UINT64_C(__helpers.promoteIntLiteral(c_int, 18446744073709551615, .decimal));
pub const INT_FAST8_MIN = -@as(c_int, 128);
pub const INT_FAST16_MIN = -__helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal) - @as(c_int, 1);
pub const INT_FAST32_MIN = -__helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal) - @as(c_int, 1);
pub const INT_FAST64_MIN = -__INT64_C(__helpers.promoteIntLiteral(c_int, 9223372036854775807, .decimal)) - @as(c_int, 1);
pub const INT_FAST8_MAX = @as(c_int, 127);
pub const INT_FAST16_MAX = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const INT_FAST32_MAX = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const INT_FAST64_MAX = __INT64_C(__helpers.promoteIntLiteral(c_int, 9223372036854775807, .decimal));
pub const UINT_FAST8_MAX = @as(c_int, 255);
pub const UINT_FAST16_MAX = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const UINT_FAST32_MAX = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const UINT_FAST64_MAX = __UINT64_C(__helpers.promoteIntLiteral(c_int, 18446744073709551615, .decimal));
pub const INTPTR_MIN = -__helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal) - @as(c_int, 1);
pub const INTPTR_MAX = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const UINTPTR_MAX = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const INTMAX_MIN = -__INT64_C(__helpers.promoteIntLiteral(c_int, 9223372036854775807, .decimal)) - @as(c_int, 1);
pub const INTMAX_MAX = __INT64_C(__helpers.promoteIntLiteral(c_int, 9223372036854775807, .decimal));
pub const UINTMAX_MAX = __UINT64_C(__helpers.promoteIntLiteral(c_int, 18446744073709551615, .decimal));
pub const PTRDIFF_MIN = -__helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal) - @as(c_int, 1);
pub const PTRDIFF_MAX = __helpers.promoteIntLiteral(c_long, 9223372036854775807, .decimal);
pub const SIG_ATOMIC_MIN = -__helpers.promoteIntLiteral(c_int, 2147483647, .decimal) - @as(c_int, 1);
pub const SIG_ATOMIC_MAX = __helpers.promoteIntLiteral(c_int, 2147483647, .decimal);
pub const SIZE_MAX = __helpers.promoteIntLiteral(c_ulong, 18446744073709551615, .decimal);
pub const WCHAR_MIN = __WCHAR_MIN;
pub const WCHAR_MAX = __WCHAR_MAX;
pub const WINT_MIN = @as(c_uint, 0);
pub const WINT_MAX = __helpers.promoteIntLiteral(c_uint, 4294967295, .decimal);
pub inline fn INT8_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub inline fn INT16_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub inline fn INT32_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub const INT64_C = __helpers.L_SUFFIX;
pub inline fn UINT8_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub inline fn UINT16_C(c: anytype) @TypeOf(c) {
_ = &c;
return c;
}
pub const UINT32_C = __helpers.U_SUFFIX;
pub const UINT64_C = __helpers.UL_SUFFIX;
pub const INTMAX_C = __helpers.L_SUFFIX;
pub const UINTMAX_C = __helpers.UL_SUFFIX;
pub const RGFW_INT_DEFINED = "";
pub const RGFW_BOOL_DEFINED = "";
pub inline fn RGFW_BOOL(x: anytype) RGFW_bool {
_ = &x;
return __helpers.cast(RGFW_bool, x != @as(c_int, 0));
}
pub const RGFW_TRUE = __helpers.cast(RGFW_bool, @as(c_int, 1));
pub const RGFW_FALSE = __helpers.cast(RGFW_bool, @as(c_int, 0));
pub const RGFW_ENUM = @compileError("unable to translate macro: untranslatable usage of arg `name`"); // include/RGFW.h:419:9
pub inline fn RGFW_BIT(x: anytype) @TypeOf(@as(c_int, 1) << x) {
_ = &x;
return @as(c_int, 1) << x;
}
pub const _G_fpos_t = struct__G_fpos_t;
pub const _G_fpos64_t = struct__G_fpos64_t;
pub const _IO_marker = struct__IO_marker;
pub const _IO_FILE = struct__IO_FILE;
pub const _IO_codecvt = struct__IO_codecvt;
pub const _IO_wide_data = struct__IO_wide_data;
pub const RGFW_format_enum = enum_RGFW_format_enum;
pub const RGFW_modeRequest_enum = enum_RGFW_modeRequest_enum;
pub const RGFW_key_enum = enum_RGFW_key_enum;
pub const RGFW_mouseButton_enum = enum_RGFW_mouseButton_enum;
pub const RGFW_keymod_enum = enum_RGFW_keymod_enum;
pub const RGFW_dndActionType_enum = enum_RGFW_dndActionType_enum;
pub const RGFW_dataTransferType_enum = enum_RGFW_dataTransferType_enum;
pub const RGFW_eventType_enum = enum_RGFW_eventType_enum;
pub const RGFW_eventFlag_enum = enum_RGFW_eventFlag_enum;
pub const RGFW_eventWait_enum = enum_RGFW_eventWait_enum;
pub const RGFW_windowFlags_enum = enum_RGFW_windowFlags_enum;
pub const RGFW_icon_enum = enum_RGFW_icon_enum;
pub const RGFW_mouseIcon_enum = enum_RGFW_mouseIcon_enum;
pub const RGFW_flashRequest_enum = enum_RGFW_flashRequest_enum;
pub const RGFW_debugType_enum = enum_RGFW_debugType_enum;
pub const RGFW_errorCode_enum = enum_RGFW_errorCode_enum;
pub const RGFW_glReleaseBehavior_enum = enum_RGFW_glReleaseBehavior_enum;
pub const RGFW_glProfile_enum = enum_RGFW_glProfile_enum;
pub const RGFW_glRenderer_enum = enum_RGFW_glRenderer_enum;
pub const wl_display = struct_wl_display;
pub const wl_surface = struct_wl_surface;
|