Core: Fix casting from array to pointer of same base, improve errors

This commit is contained in:
Krzosa Karol
2023-04-21 09:33:29 +02:00
parent 8c80f609af
commit 9edb03e1bb
3 changed files with 21 additions and 20 deletions

View File

@@ -52,12 +52,6 @@ Add(&guys, {100, 100})
// This generates: int MAP[256] = (int [256]){[0] = 0, [0] = 1}; it doesn't work because of the (int[256]) is this MSVC being retarded here? not supporting C properly?
// Also this ^ ^
// @reproduction
// map_data: [16*16]int
// map: Map = {data = map_data->*int, 16, 16}
//
// Failed to cast from [[256]int] to [*int]
#import "raylib.core"
#load "array.core"
@@ -93,6 +87,7 @@ MouseSelectedActors: Array(*MAP.Actor) // @todo: ids
main :: (): int
MAP.Init()
// InitAudioDevice()
// sound := LoadSound("catune - Pass the town, and to the C.mp3")
// SetMasterVolume(0.01)