pereckerdal/blackhole — Issue #40: c-define doesn't expand properly
Author: alvatarc
Created: 2012-02-22 09:25:49+00:00
State: open

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))