Re: Line numbers for scm_c_primitive_load() errors

2018-03-31 Thread Robert Gill
On Sat, Mar 31, 2018 at 09:09:32AM -0700, Mike Gran wrote: > Yeah. Guile only attaches line numbers to some of the locations in a > file, like 'define'; many of the inner expressions have no location > attached. > > One strategy is to evaluate a file one expression at a time, and then > hold onto

Line numbers for scm_c_primitive_load() errors

2018-03-30 Thread Robert Gill
I'm trying to read a file with scm_c_primitive_load() that uses some custom functions defined with scm_c_define_gsubr(). If I pass an invalid data type to one of these functions, I get an expected exception, but the line number of the file where they occur is not included in the stack trace. I trie