2 lily-guile.icc -- implement guile templates
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 Jan Nieuwenhuizen <janneke@gnu.org>
10 #define LILY_GUILE_ICC
12 #include "lily-guile.hh"
15 array_to_scm (Array<T> arr)
18 for (int i = arr.size (); i--;)
19 list = gh_cons (to_scm (arr[i]), list);
25 Array<T> scm_to_array (SCM s)
32 scm_to_array (SCM s, Array<T>* arr)
35 for (; gh_pair_p (s); s= gh_cdr (s))
37 T t = scm_to (gh_car (s), (T*) 0);
42 #endif /* LILY_GUILE_ICC */