2 score-element-callback.cc -- implement Callback smob.
4 source file of the GNU LilyPond music typesetter
6 (c) 2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "score-element-callback.hh"
12 static SCM callback_tag;
21 print_smob (SCM, SCM port, scm_print_state *)
23 scm_puts ("#<Callback>", port);
28 scm_sizet free_smob (SCM)
34 void start_callback_smobs()
36 callback_tag = scm_make_smob_type_mfpe ("callback", 0,
43 smobify_callback (Score_element_callback cb )
48 SCM_SETCDR (z, (SCM)cb);
49 SCM_SETCAR (z, (SCM)callback_tag);
54 ADD_SCM_INIT_FUNC(callback, start_callback_smobs);