I don't know if this is what you're asking about. but this is the script used to convert scheme code into "#include"-able c-code for the k_guile pd external: https://github.com/kmatheussen/k_guile/blob/master/gen_c_scheme.py
The output is used like this: char *scheme_code = #include "scheme_code_scm.txt" On Sat, Nov 22, 2014 at 8:40 PM, JV <[email protected]> wrote: > > How do you embed a 'large' scheme program with s7 . > Do you run any macros before you compile the c code to do the escapes for > the scheme text? (see below) > I will appreciate if i can get access to those macros. > > > int main(int argc, char **argv) > { > char *scheme_program = "(define (hello src)" > "(display src))" > "(hello \"joe\n\")"; > s7_scheme *s7; > s7 = s7_init(); > s7_eval_c_string(s7, scheme_program); > } > -- > Joe > > _______________________________________________ > Cmdist mailing list > [email protected] > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > >
_______________________________________________ Cmdist mailing list [email protected] http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
