blackhole icon indicating copy to clipboard operation
blackhole copied to clipboard

c-define doesn't expand properly

Open alvatar opened this issue 14 years ago • 0 comments

c-define doesn't expand its code properly: functions called withing this form don't get their names processed in order to be the same as the function called.

(define (setup-hook) 0)

; Doesn't work: setup-hook isn't defined according to Blackhole
(c-define (c-setup) () int "setup_scheme_hook" "" (setup-hook))
; Works, but breaks easily
(c-define (c-setup) () int "setup_scheme_hook" "" (anygame_1#setup-hook))

alvatar avatar Feb 22 '12 09:02 alvatar