MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / failIfSafeMode

Function failIfSafeMode

modules/dasSQLITE/sqlite/shell.c:16623–16638  ·  view source on GitHub ↗

** If in safe mode, print an error message described by the arguments ** and exit immediately. */

Source from the content-addressed store, hash-verified

16621** and exit immediately.
16622*/
16623static void failIfSafeMode(
16624 ShellState *p,
16625 const char *zErrMsg,
16626 ...
16627){
16628 if( p->bSafeMode ){
16629 va_list ap;
16630 char *zMsg;
16631 va_start(ap, zErrMsg);
16632 zMsg = sqlite3_vmprintf(zErrMsg, ap);
16633 va_end(ap);
16634 raw_printf(stderr, "line %d: ", p->lineno);
16635 utf8_printf(stderr, "%s\n", zMsg);
16636 exit(1);
16637 }
16638}
16639
16640/*
16641** SQL function: edit(VALUE)

Callers 2

safeModeAuthFunction · 0.85
do_meta_commandFunction · 0.85

Calls 1

utf8_printfFunction · 0.85

Tested by

no test coverage detected