Files
Hat Kid 5a8b4e81f9 decomp3: more engine stuff, support boxed stack arrays in compiler (#3424)
- `sync-info`
- `trajectory`
- `camera`
- `cam-update`
- `cam-states`
- `cam-states-dbg`
- `cam-master`
- `cam-layout`
- `cam-interface`
- `cam-combiner`

Closes #2016
2024-03-15 20:28:26 -04:00

27 lines
632 B
Common Lisp

(deftype test-stack-array-basic (basic)
((a uint32)
(b uint32)
)
)
(let ((x (new 'stack 'boxed-array uint32 2))
(y (new 'stack 'boxed-array test-stack-array-basic 2))
(z (new 'stack 'boxed-array uint64 2))
(a (new 'stack 'test-stack-array-basic))
(b (new 'stack 'test-stack-array-basic)))
(set! (-> x 0) 1)
(set! (-> x 1) 2)
(set! (-> a a) 3)
(set! (-> a b) 4)
(set! (-> b a) 5)
(set! (-> b b) 6)
(set! (-> y 0) a)
(set! (-> y 1) b)
(set! (-> z 0) 7)
(set! (-> z 1) 8)
;; 36
(+ (-> x 0) (-> x 1)
(-> y 0 a) (-> y 0 b) (-> y 1 a) (-> y 1 b)
(-> z 0) (-> z 1))
)