X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fsmobs.tcc;h=818c0900a56bac154476b49282eae6bf529241b8;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=f76609bf5b96ac8fca532f4cb975d109c0ac8b2c;hpb=958e95822083954cad00e0a598eb9f12ceba67b9;p=lilypond.git diff --git a/lily/include/smobs.tcc b/lily/include/smobs.tcc index f76609bf5b..818c0900a5 100644 --- a/lily/include/smobs.tcc +++ b/lily/include/smobs.tcc @@ -24,8 +24,6 @@ // included from smobs.hh, but other template expansion systems might // make it feasible to compile this only a single time. -#include "lily-guile-macros.hh" -#include "smobs.hh" #include template @@ -65,7 +63,7 @@ Smob_base::register_ptr (Super *p) // Defaults, should not actually get called template SCM -Smob_base::mark_smob () +Smob_base::mark_smob () const { return SCM_UNSPECIFIED; } @@ -88,7 +86,7 @@ Smob_base::equal_p (SCM, SCM) template int -Smob_base::print_smob (SCM p, scm_print_state *) +Smob_base::print_smob (SCM p, scm_print_state *) const { scm_puts ("#<", p); scm_puts (smob_name_.c_str (), p); @@ -115,6 +113,9 @@ Scm_init Smob_base::scm_init_ (init); template string Smob_base::smob_name_; +template +const char * const Smob_base::type_p_name_ = 0; + template void Smob_base::init () {