32 return TIP_(
"Operator");
34 return TIP_(
"Property");
36 return TIP_(
"Warning");
40 return TIP_(
"Invalid Input Error");
42 return TIP_(
"Invalid Context Error");
44 return TIP_(
"Out Of Memory Error");
46 return TIP_(
"Undefined Type");
65 Report *report, *report_next;
74 report_next = report->
next;
87 const char *message =
TIP_(_message);
100 len = strlen(message);
101 message_alloc =
MEM_mallocN(
sizeof(
char) * (
len + 1),
"ReportMessage");
102 memcpy(message_alloc, message,
sizeof(
char) * (
len + 1));
103 report->
message = message_alloc;
118 va_start(args, _format);
121 fprintf(stdout,
"\n");
129 va_start(args, _format);
148 const char *prepend =
TIP_(_prepend);
154 for (report = reports->
list.
first; report; report = report->
next) {
173 const char *prepend =
TIP_(_prepend);
179 for (report = reports->
list.
first; report; report = report->
next) {
181 va_start(args, _prepend);
242 for (report = reports->
list.
first; report; report = report->
next) {
243 if (report->
type >= level) {
263 return (
G.background || (reports ==
NULL) ||
271 if (cstring ==
NULL) {
284 for (report = reports->
list.
last; report; report = report->
prev) {
296 if (reports !=
NULL) {
297 for (report = reports->
list.
first; report; report = report->
next) {
298 if (report->
type >= level) {
314 for (report = reports->
list.
first; report; report = report->
next) {
315 fprintf((FILE *)fp,
"%s # %s\n", report->
message, report->
typestr);
329 "Unable to save '%s': %s\n",
331 errno ? strerror(errno) :
"Unknown error opening file");
A dynamically sized string ADT.
DynStr * BLI_dynstr_new(void) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
int BLI_dynstr_get_len(const DynStr *ds) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
char * BLI_dynstr_get_cstring(const DynStr *ds) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_dynstr_vappendf(DynStr *__restrict ds, const char *__restrict format, va_list args) ATTR_PRINTF_FORMAT(2
void BLI_dynstr_free(DynStr *ds) ATTR_NONNULL()
void BLI_dynstr_appendf(DynStr *__restrict ds, const char *__restrict format,...) ATTR_PRINTF_FORMAT(2
void BLI_dynstr_append(DynStr *__restrict ds, const char *cstr) ATTR_NONNULL()
FILE * BLI_fopen(const char *filepath, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BLI_INLINE void BLI_listbase_clear(struct ListBase *lb)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
@ RPT_ERROR_OUT_OF_MEMORY
@ RPT_ERROR_INVALID_INPUT
@ RPT_ERROR_INVALID_CONTEXT
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Read Guarded memory(de)allocation.
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_mallocN)(size_t len, const char *str)
bool BKE_reports_contain(ReportList *reports, eReportType level)
bool BKE_reports_print_test(const ReportList *reports, eReportType type)
eReportType BKE_report_store_level(ReportList *reports)
bool BKE_report_write_file(const char *filepath, ReportList *reports, const char *header)
Report * BKE_reports_last_displayable(ReportList *reports)
bool BKE_report_write_file_fp(FILE *fp, ReportList *reports, const char *header)
const char * BKE_report_type_str(eReportType type)
void BKE_reports_prepend(ReportList *reports, const char *_prepend)
void BKE_report_print_level_set(ReportList *reports, eReportType level)
void BKE_report_store_level_set(ReportList *reports, eReportType level)
eReportType BKE_report_print_level(ReportList *reports)
void BKE_reports_clear(ReportList *reports)
void BKE_reports_prependf(ReportList *reports, const char *_prepend,...)
void BKE_reportf(ReportList *reports, eReportType type, const char *_format,...)
void BKE_report(ReportList *reports, eReportType type, const char *_message)
char * BKE_reports_string(ReportList *reports, eReportType level)
void BKE_reports_init(ReportList *reports, int flag)
void BKE_reports_print(ReportList *reports, eReportType level)