このページを編集する際は、編集に関する方針に従ってください。
int errmsg_internal(const char *fmt,...) {
fprintf(stderr, "ERROR: %s\n", fmt); return 0; /* return value does not matter */
}
int errmsg_internal(const char *fmt,...) {
ErrorData *edata = &errordata[errordata_stack_depth]; MemoryContext oldcontext;
recursion_depth++; CHECK_STACK_DEPTH(); oldcontext = MemoryContextSwitchTo(ErrorContext);
EVALUATE_MESSAGE(message, false);
MemoryContextSwitchTo(oldcontext); recursion_depth--; return 0; /* return value does not matter */
}
/* * errmsg_internal --- add a primary error message text to the current error * * This is exactly like errmsg() except that strings passed to errmsg_internal * are customarily left out of the internationalization message dictionary. * This should be used for "can't happen" cases that are probably not worth * spending translation effort on. */
更新日 | 更新者 | 更新内容 |