Hi Mike,

Sorry for the slow response.

Mike Gran <spk...@yahoo.com> writes:
> Question: if I'm reading in some Guile code using the
> C API scm_c_eval_string, can I set a fake "filename"
> so that it gets added as a source property to the
> contents read in as a string?

AFAIK, we don't have an existing C API for that, but if you look at the
definition of 'scm_c_eval_string' in strports.c, you'll see that it is
just a wrapper around 'eval-string' in (ice-9 eval-string), which itself
can accept 'file', 'line', and 'column' arguments.  So, the easiest
solution for you is to make your own wrapper around 'eval-string' that
passes those arguments.

     Mark

Reply via email to