panic func takes ConstCharRange

master
Daniel Kolesa 2016-09-10 18:49:36 +02:00
parent cbafbe0fc2
commit f1e1a02a11
2 changed files with 2 additions and 2 deletions

View File

@ -339,7 +339,7 @@ private:
};
using CsHookCb = ostd::Function<void()>;
using CsPanicCb = ostd::Function<void(CsString, CsStackState)>;
using CsPanicCb = ostd::Function<void(ostd::ConstCharRange, CsStackState)>;
struct OSTD_EXPORT CsState {
CsMap<ostd::ConstCharRange, CsIdent *> idents;

View File

@ -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
);