panic func takes ConstCharRange
parent
cbafbe0fc2
commit
f1e1a02a11
|
@ -339,7 +339,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
using CsHookCb = ostd::Function<void()>;
|
using CsHookCb = ostd::Function<void()>;
|
||||||
using CsPanicCb = ostd::Function<void(CsString, CsStackState)>;
|
using CsPanicCb = ostd::Function<void(ostd::ConstCharRange, CsStackState)>;
|
||||||
|
|
||||||
struct OSTD_EXPORT CsState {
|
struct OSTD_EXPORT CsState {
|
||||||
CsMap<ostd::ConstCharRange, CsIdent *> idents;
|
CsMap<ostd::ConstCharRange, CsIdent *> idents;
|
||||||
|
|
|
@ -261,7 +261,7 @@ CsState::CsState():
|
||||||
noalias.argstack = nullptr;
|
noalias.argstack = nullptr;
|
||||||
|
|
||||||
/* default panic func */
|
/* default panic func */
|
||||||
p_panicfunc = [this](CsString v, CsStackState) {
|
p_panicfunc = [this](ostd::ConstCharRange v, CsStackState) {
|
||||||
get_err().writefln(
|
get_err().writefln(
|
||||||
"PANIC: unprotected error in call to CubeScript (%s)", v
|
"PANIC: unprotected error in call to CubeScript (%s)", v
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue