When replacing mark_smob with a proper member function, use of
ASSERT_LIVE_IS_ALLOWED would require access to self_scm () or similar,
and simple smobs don't link back to their SCM cell. This only
concerns Skyline and Context_mod, so the loss is not all that
large.
SCM
Context_mod::mark_smob (SCM smob)
{
- ASSERT_LIVE_IS_ALLOWED (smob);
-
Context_mod *me = (Context_mod *) SCM_CELL_WORD_1 (smob);
return me->mods_;
{
public:
static int print_smob (SCM, SCM, scm_print_state *);
- static SCM mark_smob (SCM);
static const char type_p_name_[];
private:
list<Building> buildings_;
const char Skyline::type_p_name_[] = "ly:skyline?";
-SCM
-Skyline::mark_smob (SCM s)
-{
- ASSERT_LIVE_IS_ALLOWED (s);
- return SCM_EOL;
-}
-
int
Skyline::print_smob (SCM s, SCM port, scm_print_state *)
{