From f1e1a02a11dda1d5c3f89048735aa9faffedb2fb Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 10 Sep 2016 18:49:36 +0200 Subject: [PATCH] panic func takes ConstCharRange --- include/cubescript/cubescript.hh | 2 +- src/cubescript.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cubescript/cubescript.hh b/include/cubescript/cubescript.hh index a31d67a..f5430d3 100644 --- a/include/cubescript/cubescript.hh +++ b/include/cubescript/cubescript.hh @@ -339,7 +339,7 @@ private: }; using CsHookCb = ostd::Function; -using CsPanicCb = ostd::Function; +using CsPanicCb = ostd::Function; struct OSTD_EXPORT CsState { CsMap idents; diff --git a/src/cubescript.cc b/src/cubescript.cc index c34762f..42209a4 100644 --- a/src/cubescript.cc +++ b/src/cubescript.cc @@ -261,7 +261,7 @@ CsState::CsState(): noalias.argstack = nullptr; /* default panic func */ - p_panicfunc = [this](CsString v, CsStackState) { + p_panicfunc = [this](ostd::ConstCharRange v, CsStackState) { get_err().writefln( "PANIC: unprotected error in call to CubeScript (%s)", v );