48 return TIP_(
"Operator");
50 return TIP_(
"Property");
52 return TIP_(
"Warning");
56 return TIP_(
"Invalid Input Error");
58 return TIP_(
"Invalid Context Error");
60 return TIP_(
"Out Of Memory Error");
62 return TIP_(
"Undefined Type");
86 Report *report, *report_next;
95 report_next = report->
next;
108 const char *message =
TIP_(_message);
123 len = strlen(message);
124 message_alloc =
MEM_mallocN(
sizeof(
char) * (
len + 1),
"ReportMessage");
125 memcpy(message_alloc, message,
sizeof(
char) * (
len + 1));
126 report->
message = message_alloc;
141 va_start(args, _format);
144 fprintf(stdout,
"\n");
152 va_start(args, _format);
171 const char *prepend =
TIP_(_prepend);
177 for (report = reports->
list.
first; report; report = report->
next) {
196 const char *prepend =
TIP_(_prepend);
202 for (report = reports->
list.
first; report; report = report->
next) {
204 va_start(args, _prepend);
265 for (report = reports->
list.
first; report; report = report->
next) {
266 if (report->
type >= level) {
286 if (cstring ==
NULL) {
299 for (report = reports->
list.
last; report; report = report->
prev) {
311 if (reports !=
NULL) {
312 for (report = reports->
list.
first; report; report = report->
next) {
313 if (report->
type >= level) {
329 for (report = reports->
list.
first; report; report = report->
next) {
330 fprintf((FILE *)fp,
"%s # %s\n", report->
message, report->
typestr);
344 "Unable to save '%s': %s\n",
346 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(DynStr *ds) 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
char * BLI_dynstr_get_cstring(DynStr *ds) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_dynstr_append(DynStr *__restrict ds, const char *cstr) ATTR_NONNULL()
FILE * BLI_fopen(const char *filename, 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)
void BKE_reports_print(ReportList *reports, ReportType level)
ReportType BKE_report_print_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)
void BKE_reportf(ReportList *reports, ReportType type, const char *_format,...)
void BKE_report_print_level_set(ReportList *reports, ReportType level)
ReportType BKE_report_store_level(ReportList *reports)
void BKE_reports_prepend(ReportList *reports, const char *_prepend)
char * BKE_reports_string(ReportList *reports, ReportType level)
void BKE_reports_clear(ReportList *reports)
void BKE_reports_prependf(ReportList *reports, const char *_prepend,...)
const char * BKE_report_type_str(ReportType type)
void BKE_report(ReportList *reports, ReportType type, const char *_message)
void BKE_report_store_level_set(ReportList *reports, ReportType level)
void BKE_reports_init(ReportList *reports, int flag)
bool BKE_reports_contain(ReportList *reports, ReportType level)