[plt-scheme] FFI and "glue code"

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

On Mon, Apr 26, 2010 at 4:04 PM, Noel Welsh <noelwelsh at gmail.com> wrote:
> On Mon, Apr 26, 2010 at 9:48 PM, Grant Rettke <grettke at acm.org> wrote:
>> ..., I
> The symbol MPI_COMM_WORLD is probably exported by the library, and if
> so you can use it directly.

I just found that it is a macro:

#define MPI_COMM_WORLD (&ompi_mpi_comm_world)

So seemingly I can grab it via:

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


Posted on the users mailing list.