[plt-scheme] How do you guys usually debug macro error messages?

From: Grant Rettke (grettke at acm.org)
Date: Mon Apr 26 17:03:31 EDT 2010

Hi,

How do you guys usually debug macro error messages?

For example I tried this (maybe it is totally wrong?):

(define MPI_COMM_WORLD
  (get-ffi-obj
   "MPI_COMM_WORLD" libmpi _pointer))

And got the error message:

syntax-e: expects argument of type <syntax>; given #f

Re:

http://download.plt-scheme.org/doc/html/foreign/Loading_Foreign_Libraries.html?q=get-ffi-obj&q=FFI#%28def._%28%28lib._scheme/foreign..ss%29._get-ffi-obj%29%29

It seems to be formed correctly.

Best wishes,

Grant Rettke


Posted on the users mailing list.