Files
jak-project/test/goalc/source_templates/with_game/test-array-ref-static.gc
T
water111 656489e942 [decomp] Clean up - part 2 (#687)
* temp

* temp2

* basic case support

* working for or without else

* support more cases

* clean up to drawable headers

* ocean

* format json
2021-07-11 16:35:25 -04:00

28 lines
752 B
Common Lisp

(deftype test-elt-type (structure)
((thing1 symbol)
(thing2 int)
)
)
(deftype test-not-inline-inline-array-type (basic)
((foo int)
(arr (inline-array test-elt-type)))
)
(let ((obj (new 'static 'test-not-inline-inline-array-type
:foo 12
:arr (new 'static 'inline-array test-elt-type
2
(new 'static 'test-elt-type :thing1 'asdf :thing2 13)
(new 'static 'test-elt-type :thing1 'bean :thing2 14)))))
(format #t "~A ~D ~A ~D ~A ~D~%"
(-> obj type)
(-> obj foo)
(-> obj arr 0 thing1)
(-> obj arr 0 thing2)
(-> obj arr 1 thing1)
(-> obj arr 1 thing2)
)
)