mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 12:35:05 +02:00
WIP
This commit is contained in:
parent
489bbeeb1e
commit
8e64b7a40d
1 changed files with 3 additions and 2 deletions
5
cgen.scm
5
cgen.scm
|
@ -145,9 +145,10 @@
|
||||||
;; Add function to trace, if not already set
|
;; Add function to trace, if not already set
|
||||||
(define (st:add-function! trace fnc)
|
(define (st:add-function! trace fnc)
|
||||||
(if (null? (cdr trace))
|
(if (null? (cdr trace))
|
||||||
(set-cdr! trace fnc)
|
(cons (car trace) fnc)
|
||||||
#f))
|
trace))
|
||||||
|
|
||||||
|
TODO: don't just do this, need to output as valid C code...
|
||||||
(define (st:->code trace)
|
(define (st:->code trace)
|
||||||
;;(write `(JAE DEBUG ,trace))
|
;;(write `(JAE DEBUG ,trace))
|
||||||
(if (or (not (pair? trace))
|
(if (or (not (pair? trace))
|
||||||
|
|
Loading…
Add table
Reference in a new issue