ret = daddy_context_->create_unique_context (name, id, operations);
else
{
- warning (_f ("can't find or create new `%s'",
+ warning (_f ("cannot find or create new `%s'",
ly_symbol2string (name).c_str ()));
ret = 0;
}
ret = daddy_context_->find_create_context (n, id, operations);
else
{
- warning (_f ("can't find or create `%s' called `%s'",
+ warning (_f ("cannot find or create `%s' called `%s'",
ly_symbol2string (n).c_str (), id));
ret = 0;
}
Context_def *t = unsmob_context_def (st);
if (!t)
{
- warning (_f ("can't find or create: `%s'", name.c_str ()));
+ warning (_f ("cannot find or create: `%s'", name.c_str ()));
t = unsmob_context_def (this->definition_);
}
#endif
)
{
+#ifndef NDEBUG
+ (void) file;
+ (void) line;
+ (void) fun;
+#endif
+
if (do_internal_type_checking_global)
assert (type_check_assignment (sym, val, ly_symbol2scm ("translation-type?")));
Context::remove_context (SCM)
{
/* ugh, the translator group should listen to RemoveContext events by itself */
- implementation ()->disconnect_from_context ();
+ Translator_group *impl = implementation ();
+ if (impl)
+ impl->disconnect_from_context ();
disconnect_from_parent ();
}