(if (string? obj)
(let* ((c-includes (find-c-includes usage-env))
(callbacks (c-includes/callbacks c-includes))
- (name (string->symbol obj)))
- (let ((entry (assq name callbacks)))
- (if (pair? entry) (cdr entry)
- (serror form "C function not declared"))))
+ (func-name (string->symbol obj)))
+ (let ((entry (assq func-name callbacks)))
+ (if (pair? entry)
+ (cdr entry)
+ (begin
+ (warn "no declaration of C function:" func-name)
+ func-name))))
(let ((value-form (close-syntax obj usage-env)))
`(REGISTER-C-CALLBACK ,value-form))))))))