| 1713 | const char *curcontext = NULL, *curinfo = NULL; |
| 1714 | |
| 1715 | void scripterr() |
| 1716 | { |
| 1717 | ASSERT(execcontext >= 0 && execcontext < IEXC_NUM); |
| 1718 | if(curcontext) conoutf("(%s: %s [%s])", curcontext, curinfo, contextnames[execcontext]); |
| 1719 | else conoutf("(from console or builtin [%s])", contextnames[execcontext]); |
| 1720 | #ifndef STANDALONE |
| 1721 | clientlogf("exec nesting level: %d", executionstack.length()); |
| 1722 | clientlogf("%s", executionstack.length() ? executionstack.last() : ":::nevermind:::"); |
| 1723 | #endif |
| 1724 | } |
| 1725 | |
| 1726 | void setcontext(const char *context, const char *info) |
| 1727 | { |
no test coverage detected