mirror of
https://github.com/open-goal/jak-project
synced 2026-09-07 11:36:26 -04:00
Change syntax for boxed array to support different length and allocated-length (#568)
* change syntax for boxed array * fix test and make the flava thing kind of work
This commit is contained in:
@@ -4,13 +4,17 @@
|
||||
;; definition for symbol EulSafe, type (array int32)
|
||||
(define
|
||||
EulSafe
|
||||
(the-as (array int32) (new 'static 'boxed-array int32 4 0 1 2 0))
|
||||
(the-as (array int32)
|
||||
(new 'static 'boxed-array :type int32 :length 4 :allocated-length 4 0 1 2 0)
|
||||
)
|
||||
)
|
||||
|
||||
;; definition for symbol EulNext, type (array int32)
|
||||
(define
|
||||
EulNext
|
||||
(the-as (array int32) (new 'static 'boxed-array int32 4 1 2 0 1))
|
||||
(the-as (array int32)
|
||||
(new 'static 'boxed-array :type int32 :length 4 :allocated-length 4 1 2 0 1)
|
||||
)
|
||||
)
|
||||
|
||||
;; definition of type euler-angles
|
||||
@@ -37,7 +41,3 @@
|
||||
;; failed to figure out what this is:
|
||||
(let ((v0-1 0))
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -92,8 +92,7 @@
|
||||
(new
|
||||
'static
|
||||
'boxed-array
|
||||
float
|
||||
32
|
||||
:type float :length 32 :allocated-length 32
|
||||
1.0
|
||||
0.5
|
||||
0.25
|
||||
@@ -137,8 +136,7 @@
|
||||
(new
|
||||
'static
|
||||
'boxed-array
|
||||
float
|
||||
32
|
||||
:type float :length 32 :allocated-length 32
|
||||
0.7853982
|
||||
0.4636476
|
||||
0.24497867
|
||||
|
||||
Reference in New Issue
Block a user