/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 1997--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Real real_amount = scm_to_double (amount);
SCM new_s = s->smobbed_copy ();
+ scm_remember_upto_here_1 (stil);
+
Stencil *q = unsmob_stencil (new_s);
q->translate_axis (real_amount, Axis (scm_to_int (axis)));
return new_s;
Offset o = ly_scm2offset (offset);
SCM new_s = s->smobbed_copy ();
+ scm_remember_upto_here_1 (stil);
+
Stencil *q = unsmob_stencil (new_s);
q->translate (o);
return new_s;
result.add_at_edge (Axis (scm_to_int (axis)),
Direction (scm_to_int (direction)), *s2, p);
+ scm_remember_upto_here_2 (first, second);
+
return result.smobbed_copy ();
}
result.stack (Axis (scm_to_int (axis)),
Direction (scm_to_int (direction)), *s2, p, d);
+ scm_remember_upto_here_2 (first, second);
+
return result.smobbed_copy ();
}
SCM arg1;
};
-void stencil_interpret_in_scm (void *p, SCM expr)
+SCM stencil_interpret_in_scm (void *p, SCM expr)
{
Stencil_interpret_arguments *ap = (Stencil_interpret_arguments *) p;
- scm_call_2 (ap->func, ap->arg1, expr);
+ return scm_call_2 (ap->func, ap->arg1, expr);
}
LY_DEFINE (ly_interpret_stencil_expression, "ly:interpret-stencil-expression",