Interp::LoadScript(bot, filename);
}
-void
-BotInterp::ScriptLog(SCM throw_args)
+SCM
+BotInterp::ScriptLog()
{
- scm_display_error_message(SCM_CADR (throw_args),
- SCM_CADDR (throw_args),
- logPort);
- scm_flush(logPort);
+ return logPort;
}
namespace
SCM_UNDEFINED, SCM_UNDEFINED) != SCM_BOOL_F)
{
wd.func = (*it)->function;
- result = gh_catch(SCM_BOOL_T,
- (scm_t_catch_body) scm_apply_wrapper,
- static_cast<void *> (&wd),
- (scm_t_catch_handler) Interp::ErrorHandler, 0);
+ result = scm_internal_catch(SCM_BOOL_T,
+ (scm_t_catch_body) lazy_apply_wrapper,
+ static_cast<void *> (&wd),
+ (scm_t_catch_handler) empty_handler, 0);
if (! (*it)->fallthru)
break;
}
while (it != it2) {
if ((*it)->when <= now) {
wd.func = (*it)->function;
- gh_catch(SCM_BOOL_T, (scm_t_catch_body) scm_apply_wrapper,
- (void *)&wd, (scm_t_catch_handler) Interp::ErrorHandler, 0);
+ scm_internal_catch(SCM_BOOL_T,
+ (scm_t_catch_body) lazy_apply_wrapper, (void *)&wd,
+ (scm_t_catch_handler) empty_handler, 0);
scm_gc_unprotect_object(wd.func);
it3 = it;
++it3;