mirror of
https://github.com/open-goal/jak-project
synced 2026-07-13 07:57:04 -04:00
fc43870d85
This renames the method object in `defmethod`s to `this` and adds detection for the `set-time!` and `time-elapsed?` macros. Definitely my biggest PR yet...
38 lines
1.0 KiB
Common Lisp
38 lines
1.0 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: assert-h.gc
|
|
;; name in dgo: assert-h
|
|
;; dgos: GAME, ENGINE
|
|
|
|
;; DECOMP BEGINS
|
|
|
|
(deftype __assert-info-private-struct (structure)
|
|
((filename string :offset-assert 0)
|
|
(line-num uint16 :offset-assert 4)
|
|
(column-num uint16 :offset-assert 6)
|
|
)
|
|
:method-count-assert 11
|
|
:size-assert #x8
|
|
:flag-assert #xb00000008
|
|
(:methods
|
|
(set-pos (_type_ string uint uint) int 9)
|
|
(print-pos (_type_) int 10)
|
|
)
|
|
)
|
|
|
|
(defmethod set-pos __assert-info-private-struct ((this __assert-info-private-struct) (filename string) (line-num uint) (column-num uint))
|
|
(set! (-> this filename) filename)
|
|
(set! (-> this line-num) line-num)
|
|
(set! (-> this column-num) column-num)
|
|
0
|
|
)
|
|
|
|
(defmethod print-pos __assert-info-private-struct ((this __assert-info-private-struct))
|
|
(format #t "file ~S.gc, line ~D, col ~D.~%" (-> this filename) (-> this line-num) (-> this column-num))
|
|
0
|
|
)
|
|
|
|
(define *__private-assert-info* (new 'static '__assert-info-private-struct))
|
|
|