X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fsimple-closure.hh;h=8903bba1facf9497e8e0b2b034c5179626b8452e;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=9f4186e58ba8fb3c9d30f58c2a02f46505891467;hpb=e24fb7cc5671aea95211d4a0c56f28fb6fe8720e;p=lilypond.git diff --git a/lily/include/simple-closure.hh b/lily/include/simple-closure.hh index 9f4186e58b..8903bba1fa 100644 --- a/lily/include/simple-closure.hh +++ b/lily/include/simple-closure.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2005--2014 Han-Wen Nienhuys + Copyright (C) 2005--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,10 +21,16 @@ #define SIMPLE_CLOSURE_HH #include "lily-guile.hh" +#include "small-smobs.hh" + +class Simple_closure : public Smob1 +{ +public: + SCM expression() const { return scm1 (); } + int print_smob (SCM, scm_print_state *); + static const char type_p_name_[]; +}; -bool is_simple_closure (SCM s); -SCM simple_closure_expression (SCM smob); SCM evaluate_with_simple_closure (SCM delayed_argument, SCM expr, bool pure, int start, int end); -SCM ly_make_simple_closure (SCM); #endif /* SIMPLE_CLOSURE_HH */