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"
13 static long callback_tag;
22 print_smob (SCM, SCM port, scm_print_state *)
24 scm_puts ("#<Callback>", port);
29 scm_sizet free_smob (SCM)
34 static scm_smobfuns callback_funs = {
40 void start_callback_smobs()
42 callback_tag = scm_newsmob (&callback_funs);
46 SCM smobify_callback (Score_element_callback cb )
52 SCM_SETCAR(z, callback_tag);
57 ADD_SCM_INIT_FUNC(callback, start_callback_smobs);