mt-lang 0.3.31 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/milk_tea/base.rb +1 -1
- data/lib/milk_tea/bindings/bindgen/emitter.rb +1 -8
- data/lib/milk_tea/core/lexer.rb +5 -1
- data/lib/milk_tea/core/parser/declarations.rb +9 -4
- data/std/c/box2d.mt +1 -1
- data/std/c/cgltf.mt +8 -8
- data/std/c/cjson.mt +1 -1
- data/std/c/curl.mt +5 -5
- data/std/c/enet.mt +3 -3
- data/std/c/flecs.mt +31 -31
- data/std/c/libuv.mt +50 -50
- data/std/c/miniaudio.mt +20 -20
- data/std/c/raygui.mt +1 -1
- data/std/c/raylib.mt +1 -1
- data/std/c/rpng.mt +1 -1
- data/std/c/rres.mt +2 -2
- data/std/c/sdl3.mt +56 -56
- data/std/c/sqlite3.mt +1 -1
- data/std/c/stb_truetype.mt +1 -1
- data/std/sdl3/runtime.mt +11 -0
- metadata +2 -2
data/std/c/sdl3.mt
CHANGED
|
@@ -249,7 +249,7 @@ struct SDL_AssertData:
|
|
|
249
249
|
condition: cstr
|
|
250
250
|
filename: cstr
|
|
251
251
|
linenum: int
|
|
252
|
-
|
|
252
|
+
function: cstr
|
|
253
253
|
next: const_ptr[SDL_AssertData]
|
|
254
254
|
|
|
255
255
|
external function SDL_ReportAssertion(data: ptr[SDL_AssertData], func: cstr, file: cstr, line: int) -> SDL_AssertState
|
|
@@ -275,7 +275,7 @@ flags SDL_AsyncIOResult: int
|
|
|
275
275
|
|
|
276
276
|
struct SDL_AsyncIOOutcome:
|
|
277
277
|
asyncio: ptr[SDL_AsyncIO]
|
|
278
|
-
|
|
278
|
+
type: SDL_AsyncIOTaskType
|
|
279
279
|
result: SDL_AsyncIOResult
|
|
280
280
|
buffer: ptr[void]
|
|
281
281
|
offset: ptr_uint
|
|
@@ -945,7 +945,7 @@ enum SDL_FlipMode: int
|
|
|
945
945
|
SDL_FLIP_HORIZONTAL_AND_VERTICAL = 3
|
|
946
946
|
|
|
947
947
|
struct SDL_Surface:
|
|
948
|
-
|
|
948
|
+
flags: uint
|
|
949
949
|
format: SDL_PixelFormat
|
|
950
950
|
w: int
|
|
951
951
|
h: int
|
|
@@ -1420,12 +1420,12 @@ struct SDL_VirtualJoystickTouchpadDesc:
|
|
|
1420
1420
|
padding: array[Uint16, 3]
|
|
1421
1421
|
|
|
1422
1422
|
struct SDL_VirtualJoystickSensorDesc:
|
|
1423
|
-
|
|
1423
|
+
type: SDL_SensorType
|
|
1424
1424
|
rate: float
|
|
1425
1425
|
|
|
1426
1426
|
struct SDL_VirtualJoystickDesc:
|
|
1427
1427
|
version: uint
|
|
1428
|
-
|
|
1428
|
+
type: ushort
|
|
1429
1429
|
padding: ushort
|
|
1430
1430
|
vendor_id: ushort
|
|
1431
1431
|
product_id: ushort
|
|
@@ -2178,12 +2178,12 @@ enum SDL_EventType: int
|
|
|
2178
2178
|
SDL_EVENT_ENUM_PADDING = 2147483647
|
|
2179
2179
|
|
|
2180
2180
|
struct SDL_CommonEvent:
|
|
2181
|
-
|
|
2181
|
+
type: uint
|
|
2182
2182
|
reserved: uint
|
|
2183
2183
|
timestamp: ptr_uint
|
|
2184
2184
|
|
|
2185
2185
|
struct SDL_DisplayEvent:
|
|
2186
|
-
|
|
2186
|
+
type: SDL_EventType
|
|
2187
2187
|
reserved: uint
|
|
2188
2188
|
timestamp: ptr_uint
|
|
2189
2189
|
displayID: uint
|
|
@@ -2191,7 +2191,7 @@ struct SDL_DisplayEvent:
|
|
|
2191
2191
|
data2: int
|
|
2192
2192
|
|
|
2193
2193
|
struct SDL_WindowEvent:
|
|
2194
|
-
|
|
2194
|
+
type: SDL_EventType
|
|
2195
2195
|
reserved: uint
|
|
2196
2196
|
timestamp: ptr_uint
|
|
2197
2197
|
windowID: uint
|
|
@@ -2199,13 +2199,13 @@ struct SDL_WindowEvent:
|
|
|
2199
2199
|
data2: int
|
|
2200
2200
|
|
|
2201
2201
|
struct SDL_KeyboardDeviceEvent:
|
|
2202
|
-
|
|
2202
|
+
type: SDL_EventType
|
|
2203
2203
|
reserved: uint
|
|
2204
2204
|
timestamp: ptr_uint
|
|
2205
2205
|
which: uint
|
|
2206
2206
|
|
|
2207
2207
|
struct SDL_KeyboardEvent:
|
|
2208
|
-
|
|
2208
|
+
type: SDL_EventType
|
|
2209
2209
|
reserved: uint
|
|
2210
2210
|
timestamp: ptr_uint
|
|
2211
2211
|
windowID: uint
|
|
@@ -2218,7 +2218,7 @@ struct SDL_KeyboardEvent:
|
|
|
2218
2218
|
repeat: bool
|
|
2219
2219
|
|
|
2220
2220
|
struct SDL_TextEditingEvent:
|
|
2221
|
-
|
|
2221
|
+
type: SDL_EventType
|
|
2222
2222
|
reserved: uint
|
|
2223
2223
|
timestamp: ptr_uint
|
|
2224
2224
|
windowID: uint
|
|
@@ -2227,7 +2227,7 @@ struct SDL_TextEditingEvent:
|
|
|
2227
2227
|
length: int
|
|
2228
2228
|
|
|
2229
2229
|
struct SDL_TextEditingCandidatesEvent:
|
|
2230
|
-
|
|
2230
|
+
type: SDL_EventType
|
|
2231
2231
|
reserved: uint
|
|
2232
2232
|
timestamp: ptr_uint
|
|
2233
2233
|
windowID: uint
|
|
@@ -2240,20 +2240,20 @@ struct SDL_TextEditingCandidatesEvent:
|
|
|
2240
2240
|
padding3: ubyte
|
|
2241
2241
|
|
|
2242
2242
|
struct SDL_TextInputEvent:
|
|
2243
|
-
|
|
2243
|
+
type: SDL_EventType
|
|
2244
2244
|
reserved: uint
|
|
2245
2245
|
timestamp: ptr_uint
|
|
2246
2246
|
windowID: uint
|
|
2247
2247
|
text: cstr
|
|
2248
2248
|
|
|
2249
2249
|
struct SDL_MouseDeviceEvent:
|
|
2250
|
-
|
|
2250
|
+
type: SDL_EventType
|
|
2251
2251
|
reserved: uint
|
|
2252
2252
|
timestamp: ptr_uint
|
|
2253
2253
|
which: uint
|
|
2254
2254
|
|
|
2255
2255
|
struct SDL_MouseMotionEvent:
|
|
2256
|
-
|
|
2256
|
+
type: SDL_EventType
|
|
2257
2257
|
reserved: uint
|
|
2258
2258
|
timestamp: ptr_uint
|
|
2259
2259
|
windowID: uint
|
|
@@ -2265,7 +2265,7 @@ struct SDL_MouseMotionEvent:
|
|
|
2265
2265
|
yrel: float
|
|
2266
2266
|
|
|
2267
2267
|
struct SDL_MouseButtonEvent:
|
|
2268
|
-
|
|
2268
|
+
type: SDL_EventType
|
|
2269
2269
|
reserved: uint
|
|
2270
2270
|
timestamp: ptr_uint
|
|
2271
2271
|
windowID: uint
|
|
@@ -2278,7 +2278,7 @@ struct SDL_MouseButtonEvent:
|
|
|
2278
2278
|
y: float
|
|
2279
2279
|
|
|
2280
2280
|
struct SDL_MouseWheelEvent:
|
|
2281
|
-
|
|
2281
|
+
type: SDL_EventType
|
|
2282
2282
|
reserved: uint
|
|
2283
2283
|
timestamp: ptr_uint
|
|
2284
2284
|
windowID: uint
|
|
@@ -2292,7 +2292,7 @@ struct SDL_MouseWheelEvent:
|
|
|
2292
2292
|
integer_y: int
|
|
2293
2293
|
|
|
2294
2294
|
struct SDL_JoyAxisEvent:
|
|
2295
|
-
|
|
2295
|
+
type: SDL_EventType
|
|
2296
2296
|
reserved: uint
|
|
2297
2297
|
timestamp: ptr_uint
|
|
2298
2298
|
which: uint
|
|
@@ -2304,7 +2304,7 @@ struct SDL_JoyAxisEvent:
|
|
|
2304
2304
|
padding4: ushort
|
|
2305
2305
|
|
|
2306
2306
|
struct SDL_JoyBallEvent:
|
|
2307
|
-
|
|
2307
|
+
type: SDL_EventType
|
|
2308
2308
|
reserved: uint
|
|
2309
2309
|
timestamp: ptr_uint
|
|
2310
2310
|
which: uint
|
|
@@ -2316,7 +2316,7 @@ struct SDL_JoyBallEvent:
|
|
|
2316
2316
|
yrel: short
|
|
2317
2317
|
|
|
2318
2318
|
struct SDL_JoyHatEvent:
|
|
2319
|
-
|
|
2319
|
+
type: SDL_EventType
|
|
2320
2320
|
reserved: uint
|
|
2321
2321
|
timestamp: ptr_uint
|
|
2322
2322
|
which: uint
|
|
@@ -2326,7 +2326,7 @@ struct SDL_JoyHatEvent:
|
|
|
2326
2326
|
padding2: ubyte
|
|
2327
2327
|
|
|
2328
2328
|
struct SDL_JoyButtonEvent:
|
|
2329
|
-
|
|
2329
|
+
type: SDL_EventType
|
|
2330
2330
|
reserved: uint
|
|
2331
2331
|
timestamp: ptr_uint
|
|
2332
2332
|
which: uint
|
|
@@ -2336,13 +2336,13 @@ struct SDL_JoyButtonEvent:
|
|
|
2336
2336
|
padding2: ubyte
|
|
2337
2337
|
|
|
2338
2338
|
struct SDL_JoyDeviceEvent:
|
|
2339
|
-
|
|
2339
|
+
type: SDL_EventType
|
|
2340
2340
|
reserved: uint
|
|
2341
2341
|
timestamp: ptr_uint
|
|
2342
2342
|
which: uint
|
|
2343
2343
|
|
|
2344
2344
|
struct SDL_JoyBatteryEvent:
|
|
2345
|
-
|
|
2345
|
+
type: SDL_EventType
|
|
2346
2346
|
reserved: uint
|
|
2347
2347
|
timestamp: ptr_uint
|
|
2348
2348
|
which: uint
|
|
@@ -2350,7 +2350,7 @@ struct SDL_JoyBatteryEvent:
|
|
|
2350
2350
|
percent: int
|
|
2351
2351
|
|
|
2352
2352
|
struct SDL_GamepadAxisEvent:
|
|
2353
|
-
|
|
2353
|
+
type: SDL_EventType
|
|
2354
2354
|
reserved: uint
|
|
2355
2355
|
timestamp: ptr_uint
|
|
2356
2356
|
which: uint
|
|
@@ -2362,7 +2362,7 @@ struct SDL_GamepadAxisEvent:
|
|
|
2362
2362
|
padding4: ushort
|
|
2363
2363
|
|
|
2364
2364
|
struct SDL_GamepadButtonEvent:
|
|
2365
|
-
|
|
2365
|
+
type: SDL_EventType
|
|
2366
2366
|
reserved: uint
|
|
2367
2367
|
timestamp: ptr_uint
|
|
2368
2368
|
which: uint
|
|
@@ -2372,13 +2372,13 @@ struct SDL_GamepadButtonEvent:
|
|
|
2372
2372
|
padding2: ubyte
|
|
2373
2373
|
|
|
2374
2374
|
struct SDL_GamepadDeviceEvent:
|
|
2375
|
-
|
|
2375
|
+
type: SDL_EventType
|
|
2376
2376
|
reserved: uint
|
|
2377
2377
|
timestamp: ptr_uint
|
|
2378
2378
|
which: uint
|
|
2379
2379
|
|
|
2380
2380
|
struct SDL_GamepadTouchpadEvent:
|
|
2381
|
-
|
|
2381
|
+
type: SDL_EventType
|
|
2382
2382
|
reserved: uint
|
|
2383
2383
|
timestamp: ptr_uint
|
|
2384
2384
|
which: uint
|
|
@@ -2389,7 +2389,7 @@ struct SDL_GamepadTouchpadEvent:
|
|
|
2389
2389
|
pressure: float
|
|
2390
2390
|
|
|
2391
2391
|
struct SDL_GamepadSensorEvent:
|
|
2392
|
-
|
|
2392
|
+
type: SDL_EventType
|
|
2393
2393
|
reserved: uint
|
|
2394
2394
|
timestamp: ptr_uint
|
|
2395
2395
|
which: uint
|
|
@@ -2398,7 +2398,7 @@ struct SDL_GamepadSensorEvent:
|
|
|
2398
2398
|
sensor_timestamp: ptr_uint
|
|
2399
2399
|
|
|
2400
2400
|
struct SDL_AudioDeviceEvent:
|
|
2401
|
-
|
|
2401
|
+
type: SDL_EventType
|
|
2402
2402
|
reserved: uint
|
|
2403
2403
|
timestamp: ptr_uint
|
|
2404
2404
|
which: uint
|
|
@@ -2408,19 +2408,19 @@ struct SDL_AudioDeviceEvent:
|
|
|
2408
2408
|
padding3: ubyte
|
|
2409
2409
|
|
|
2410
2410
|
struct SDL_CameraDeviceEvent:
|
|
2411
|
-
|
|
2411
|
+
type: SDL_EventType
|
|
2412
2412
|
reserved: uint
|
|
2413
2413
|
timestamp: ptr_uint
|
|
2414
2414
|
which: uint
|
|
2415
2415
|
|
|
2416
2416
|
struct SDL_RenderEvent:
|
|
2417
|
-
|
|
2417
|
+
type: SDL_EventType
|
|
2418
2418
|
reserved: uint
|
|
2419
2419
|
timestamp: ptr_uint
|
|
2420
2420
|
windowID: uint
|
|
2421
2421
|
|
|
2422
2422
|
struct SDL_TouchFingerEvent:
|
|
2423
|
-
|
|
2423
|
+
type: SDL_EventType
|
|
2424
2424
|
reserved: uint
|
|
2425
2425
|
timestamp: ptr_uint
|
|
2426
2426
|
touchID: ptr_uint
|
|
@@ -2433,21 +2433,21 @@ struct SDL_TouchFingerEvent:
|
|
|
2433
2433
|
windowID: uint
|
|
2434
2434
|
|
|
2435
2435
|
struct SDL_PinchFingerEvent:
|
|
2436
|
-
|
|
2436
|
+
type: SDL_EventType
|
|
2437
2437
|
reserved: uint
|
|
2438
2438
|
timestamp: ptr_uint
|
|
2439
2439
|
scale: float
|
|
2440
2440
|
windowID: uint
|
|
2441
2441
|
|
|
2442
2442
|
struct SDL_PenProximityEvent:
|
|
2443
|
-
|
|
2443
|
+
type: SDL_EventType
|
|
2444
2444
|
reserved: uint
|
|
2445
2445
|
timestamp: ptr_uint
|
|
2446
2446
|
windowID: uint
|
|
2447
2447
|
which: uint
|
|
2448
2448
|
|
|
2449
2449
|
struct SDL_PenMotionEvent:
|
|
2450
|
-
|
|
2450
|
+
type: SDL_EventType
|
|
2451
2451
|
reserved: uint
|
|
2452
2452
|
timestamp: ptr_uint
|
|
2453
2453
|
windowID: uint
|
|
@@ -2457,7 +2457,7 @@ struct SDL_PenMotionEvent:
|
|
|
2457
2457
|
y: float
|
|
2458
2458
|
|
|
2459
2459
|
struct SDL_PenTouchEvent:
|
|
2460
|
-
|
|
2460
|
+
type: SDL_EventType
|
|
2461
2461
|
reserved: uint
|
|
2462
2462
|
timestamp: ptr_uint
|
|
2463
2463
|
windowID: uint
|
|
@@ -2469,7 +2469,7 @@ struct SDL_PenTouchEvent:
|
|
|
2469
2469
|
down: bool
|
|
2470
2470
|
|
|
2471
2471
|
struct SDL_PenButtonEvent:
|
|
2472
|
-
|
|
2472
|
+
type: SDL_EventType
|
|
2473
2473
|
reserved: uint
|
|
2474
2474
|
timestamp: ptr_uint
|
|
2475
2475
|
windowID: uint
|
|
@@ -2481,7 +2481,7 @@ struct SDL_PenButtonEvent:
|
|
|
2481
2481
|
down: bool
|
|
2482
2482
|
|
|
2483
2483
|
struct SDL_PenAxisEvent:
|
|
2484
|
-
|
|
2484
|
+
type: SDL_EventType
|
|
2485
2485
|
reserved: uint
|
|
2486
2486
|
timestamp: ptr_uint
|
|
2487
2487
|
windowID: uint
|
|
@@ -2493,7 +2493,7 @@ struct SDL_PenAxisEvent:
|
|
|
2493
2493
|
value: float
|
|
2494
2494
|
|
|
2495
2495
|
struct SDL_DropEvent:
|
|
2496
|
-
|
|
2496
|
+
type: SDL_EventType
|
|
2497
2497
|
reserved: uint
|
|
2498
2498
|
timestamp: ptr_uint
|
|
2499
2499
|
windowID: uint
|
|
@@ -2503,7 +2503,7 @@ struct SDL_DropEvent:
|
|
|
2503
2503
|
data: cstr
|
|
2504
2504
|
|
|
2505
2505
|
struct SDL_ClipboardEvent:
|
|
2506
|
-
|
|
2506
|
+
type: SDL_EventType
|
|
2507
2507
|
reserved: uint
|
|
2508
2508
|
timestamp: ptr_uint
|
|
2509
2509
|
owner: bool
|
|
@@ -2511,7 +2511,7 @@ struct SDL_ClipboardEvent:
|
|
|
2511
2511
|
mime_types: ptr[cstr]
|
|
2512
2512
|
|
|
2513
2513
|
struct SDL_SensorEvent:
|
|
2514
|
-
|
|
2514
|
+
type: SDL_EventType
|
|
2515
2515
|
reserved: uint
|
|
2516
2516
|
timestamp: ptr_uint
|
|
2517
2517
|
which: uint
|
|
@@ -2519,12 +2519,12 @@ struct SDL_SensorEvent:
|
|
|
2519
2519
|
sensor_timestamp: ptr_uint
|
|
2520
2520
|
|
|
2521
2521
|
struct SDL_QuitEvent:
|
|
2522
|
-
|
|
2522
|
+
type: SDL_EventType
|
|
2523
2523
|
reserved: uint
|
|
2524
2524
|
timestamp: ptr_uint
|
|
2525
2525
|
|
|
2526
2526
|
struct SDL_UserEvent:
|
|
2527
|
-
|
|
2527
|
+
type: uint
|
|
2528
2528
|
reserved: uint
|
|
2529
2529
|
timestamp: ptr_uint
|
|
2530
2530
|
windowID: uint
|
|
@@ -2533,7 +2533,7 @@ struct SDL_UserEvent:
|
|
|
2533
2533
|
data2: ptr[void]
|
|
2534
2534
|
|
|
2535
2535
|
union SDL_Event:
|
|
2536
|
-
|
|
2536
|
+
type: uint
|
|
2537
2537
|
common: SDL_CommonEvent
|
|
2538
2538
|
display: SDL_DisplayEvent
|
|
2539
2539
|
window: SDL_WindowEvent
|
|
@@ -2629,7 +2629,7 @@ enum SDL_PathType: int
|
|
|
2629
2629
|
SDL_PATHTYPE_OTHER = 3
|
|
2630
2630
|
|
|
2631
2631
|
struct SDL_PathInfo:
|
|
2632
|
-
|
|
2632
|
+
type: SDL_PathType
|
|
2633
2633
|
size: ptr_uint
|
|
2634
2634
|
create_time: ptr_int
|
|
2635
2635
|
modify_time: ptr_int
|
|
@@ -3088,7 +3088,7 @@ struct SDL_GPUShaderCreateInfo:
|
|
|
3088
3088
|
props: uint
|
|
3089
3089
|
|
|
3090
3090
|
struct SDL_GPUTextureCreateInfo:
|
|
3091
|
-
|
|
3091
|
+
type: SDL_GPUTextureType
|
|
3092
3092
|
format: SDL_GPUTextureFormat
|
|
3093
3093
|
usage: uint
|
|
3094
3094
|
width: uint
|
|
@@ -3357,11 +3357,11 @@ type SDL_HapticDirectionType = ubyte
|
|
|
3357
3357
|
type SDL_HapticEffectID = int
|
|
3358
3358
|
|
|
3359
3359
|
struct SDL_HapticDirection:
|
|
3360
|
-
|
|
3360
|
+
type: ubyte
|
|
3361
3361
|
dir: array[Sint32, 3]
|
|
3362
3362
|
|
|
3363
3363
|
struct SDL_HapticConstant:
|
|
3364
|
-
|
|
3364
|
+
type: ushort
|
|
3365
3365
|
direction: SDL_HapticDirection
|
|
3366
3366
|
length: uint
|
|
3367
3367
|
delay: ushort
|
|
@@ -3374,7 +3374,7 @@ struct SDL_HapticConstant:
|
|
|
3374
3374
|
fade_level: ushort
|
|
3375
3375
|
|
|
3376
3376
|
struct SDL_HapticPeriodic:
|
|
3377
|
-
|
|
3377
|
+
type: ushort
|
|
3378
3378
|
direction: SDL_HapticDirection
|
|
3379
3379
|
length: uint
|
|
3380
3380
|
delay: ushort
|
|
@@ -3390,7 +3390,7 @@ struct SDL_HapticPeriodic:
|
|
|
3390
3390
|
fade_level: ushort
|
|
3391
3391
|
|
|
3392
3392
|
struct SDL_HapticCondition:
|
|
3393
|
-
|
|
3393
|
+
type: ushort
|
|
3394
3394
|
direction: SDL_HapticDirection
|
|
3395
3395
|
length: uint
|
|
3396
3396
|
delay: ushort
|
|
@@ -3404,7 +3404,7 @@ struct SDL_HapticCondition:
|
|
|
3404
3404
|
center: array[Sint16, 3]
|
|
3405
3405
|
|
|
3406
3406
|
struct SDL_HapticRamp:
|
|
3407
|
-
|
|
3407
|
+
type: ushort
|
|
3408
3408
|
direction: SDL_HapticDirection
|
|
3409
3409
|
length: uint
|
|
3410
3410
|
delay: ushort
|
|
@@ -3418,13 +3418,13 @@ struct SDL_HapticRamp:
|
|
|
3418
3418
|
fade_level: ushort
|
|
3419
3419
|
|
|
3420
3420
|
struct SDL_HapticLeftRight:
|
|
3421
|
-
|
|
3421
|
+
type: ushort
|
|
3422
3422
|
length: uint
|
|
3423
3423
|
large_magnitude: ushort
|
|
3424
3424
|
small_magnitude: ushort
|
|
3425
3425
|
|
|
3426
3426
|
struct SDL_HapticCustom:
|
|
3427
|
-
|
|
3427
|
+
type: ushort
|
|
3428
3428
|
direction: SDL_HapticDirection
|
|
3429
3429
|
length: uint
|
|
3430
3430
|
delay: ushort
|
|
@@ -3440,7 +3440,7 @@ struct SDL_HapticCustom:
|
|
|
3440
3440
|
fade_level: ushort
|
|
3441
3441
|
|
|
3442
3442
|
union SDL_HapticEffect:
|
|
3443
|
-
|
|
3443
|
+
type: ushort
|
|
3444
3444
|
constant: SDL_HapticConstant
|
|
3445
3445
|
periodic: SDL_HapticPeriodic
|
|
3446
3446
|
condition: SDL_HapticCondition
|
|
@@ -3646,7 +3646,7 @@ type SDL_MessageBoxFlags = uint
|
|
|
3646
3646
|
type SDL_MessageBoxButtonFlags = uint
|
|
3647
3647
|
|
|
3648
3648
|
struct SDL_MessageBoxButtonData:
|
|
3649
|
-
|
|
3649
|
+
flags: uint
|
|
3650
3650
|
buttonID: int
|
|
3651
3651
|
text: cstr
|
|
3652
3652
|
|
|
@@ -3667,7 +3667,7 @@ struct SDL_MessageBoxColorScheme:
|
|
|
3667
3667
|
colors: array[SDL_MessageBoxColor, 5]
|
|
3668
3668
|
|
|
3669
3669
|
struct SDL_MessageBoxData:
|
|
3670
|
-
|
|
3670
|
+
flags: uint
|
|
3671
3671
|
window: ptr[SDL_Window]
|
|
3672
3672
|
title: cstr
|
|
3673
3673
|
message: cstr
|
data/std/c/sqlite3.mt
CHANGED
|
@@ -544,7 +544,7 @@ struct sqlite3_rtree_query_info:
|
|
|
544
544
|
rScore: double
|
|
545
545
|
apSqlParam: ptr[ptr[sqlite3_value]]
|
|
546
546
|
|
|
547
|
-
const SQLITE_VERSION_NUMBER: int =
|
|
547
|
+
const SQLITE_VERSION_NUMBER: int = 3053004
|
|
548
548
|
const SQLITE_OK: int = 0
|
|
549
549
|
const SQLITE_ERROR: int = 1
|
|
550
550
|
const SQLITE_INTERNAL: int = 2
|
data/std/c/stb_truetype.mt
CHANGED
data/std/sdl3/runtime.mt
CHANGED
|
@@ -52,3 +52,14 @@ public function locale_string(locale: ptr[sdl.Locale]) -> string.String:
|
|
|
52
52
|
|
|
53
53
|
public function debug_text_width(text_value: str) -> float:
|
|
54
54
|
return float<-sdl.DEBUG_TEXT_FONT_CHARACTER_SIZE * float<-text_value.len
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
public function asset_path(relative: str) -> string.String:
|
|
58
|
+
let base = sdl.get_base_path() else:
|
|
59
|
+
fatal("could not resolve the application base path")
|
|
60
|
+
|
|
61
|
+
var path = string.String.with_capacity(relative.len + 64)
|
|
62
|
+
path.append(text.cstr_as_str(base))
|
|
63
|
+
path.append("../resources/")
|
|
64
|
+
path.append(relative)
|
|
65
|
+
return path
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mt-lang
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.32
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Long (Teefan) Tran
|
|
@@ -624,7 +624,7 @@ metadata:
|
|
|
624
624
|
homepage_uri: https://teefan.github.io/mt-lang/
|
|
625
625
|
source_code_uri: https://github.com/teefan/mt-lang
|
|
626
626
|
post_install_message: |
|
|
627
|
-
Milk Tea 0.3.
|
|
627
|
+
Milk Tea 0.3.32 installed!
|
|
628
628
|
|
|
629
629
|
System requirements:
|
|
630
630
|
- A C compiler (gcc or clang) must be available on PATH
|