Re: modules and C

2007-03-21 Thread dsmich
David Fang <[EMAIL PROTECTED]> wrote: > Hi, > I'm having a bit of trouble using a symbol I defined in C from a > module: > What do I need to do to export my scm_c_define_gsubr'd > functions to the module? Must I wrap them into another module in C, and > use-module it? (Would I

Re: C++ and stack unwinding/destruction

2007-03-21 Thread David Fang
> > So this means I should be able to stop the dynwind from > > plowing through any pure C++ function, in theory, right? > > Yes. > > > (I'm still itching to upgrade the libguile API for C++, > > if I only had the time to futz with it...) > > IMHO this is possible only by wrapping libguile with > a

modules and C

2007-03-21 Thread David Fang
Hi, I'm having a bit of trouble using a symbol I defined in C from a module: In a .cc file, I've defined some_C_function(), and exposed it to guile via scm_c_define_gsubr("some-C-function", ...), which is called upon initialization as part of an inner_main() passed to scm_shell().