#include <stdio.h>
#include <errno.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | LOG_PREFIX "SCB" |
#define | DUMP_ON 0 |
#define | LOG_OPEN(X) do {} while (0) |
#define | LOG_CLOSE() do {} while (0) |
#define | LOGPRINTF(format, args...) do {} while (0) |
#define | DUMPPRINTF(format, args...) do {} while (0) |
#define | WARNPRINTF(format, args...) fprintf(stderr, "(" LOG_PREFIX "_W)" __FILE__ ":%d,%s() " format "\n", __LINE__, __func__ , ##args) |
#define | ERRORPRINTF(format, args...) fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args) |
#define | ERRNOPRINTF(format, args...) fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno)) |
#define | ERSCRIBBLE_RET_FALSE_IF(expr, x, args...) if (expr) { ERRORPRINTF(x, ##args); return FALSE; } |
#define | ERSCRIBBLE_RET_NULL_IF(expr, x, args...) if (expr) { ERRORPRINTF(x, ##args); return NULL; } |
#define | ERSCRIBBLE_RET_IF(expr, x, args...) if (expr) { ERRORPRINTF(x, ##args); return; } |
#define | ERSCRIBBLE_RET_INT_IF(expr, ret, x, args...) if (expr) { ERRORPRINTF(x, ##args); return ret; } |
#define DUMPPRINTF | ( | format, | |||
args... | ) | do {} while (0) |
Definition at line 81 of file scblog.h.
Referenced by erscribble_page_dump(), erscribble_point_dump(), erscribble_points_dump(), and erscribble_stroke_dump().
#define ERRNOPRINTF | ( | format, | |||
args... | ) | fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno)) |
#define ERRORPRINTF | ( | format, | |||
args... | ) | fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args) |
#define ERSCRIBBLE_RET_FALSE_IF | ( | expr, | |||
x, | |||||
args... | ) | if (expr) { ERRORPRINTF(x, ##args); return FALSE; } |
Definition at line 112 of file scblog.h.
Referenced by erscribble_doc_delete_page_impl(), erscribble_doc_insert_page_impl(), erscribble_page_add_stroke(), erscribble_page_load(), erscribble_pages_add_page(), erscribble_pages_new(), erscribble_point_load(), erscribble_points_new(), erscribble_stroke_line_hit_test(), erscribble_stroke_load(), erscribble_stroke_point_hit_test(), erscribble_stroke_write_stream(), erscribble_strokes_load(), erscribble_strokes_new(), and erscribble_strokes_write_stream().
#define ERSCRIBBLE_RET_IF | ( | expr, | |||
x, | |||||
args... | ) | if (expr) { ERRORPRINTF(x, ##args); return; } |
Definition at line 114 of file scblog.h.
Referenced by erscribble_page_clear(), erscribble_page_clear_strokes(), erscribble_page_dump(), erscribble_page_free(), erscribble_pages_dump(), erscribble_pages_remove_page(), erscribble_point_dump(), erscribble_points_append(), erscribble_points_dump(), erscribble_points_free(), erscribble_stroke_driver_draw(), erscribble_stroke_driver_draw_point(), erscribble_stroke_dump(), erscribble_stroke_free(), erscribble_stroke_set_color(), erscribble_stroke_set_shape(), erscribble_stroke_set_size(), erscribble_strokes_add_stroke(), erscribble_strokes_add_strokes(), erscribble_strokes_clear(), and erscribble_strokes_free().
#define ERSCRIBBLE_RET_INT_IF | ( | expr, | |||
ret, | |||||
x, | |||||
args... | ) | if (expr) { ERRORPRINTF(x, ##args); return ret; } |
Definition at line 115 of file scblog.h.
Referenced by erscribble_page_get_stroke_count(), erscribble_pages_get_count(), erscribble_points_get_count(), erscribble_stroke_add_point(), erscribble_stroke_get_point_count(), and erscribble_strokes_get_count().
#define ERSCRIBBLE_RET_NULL_IF | ( | expr, | |||
x, | |||||
args... | ) | if (expr) { ERRORPRINTF(x, ##args); return NULL; } |
Definition at line 113 of file scblog.h.
Referenced by erscribble_page_get_strokes(), erscribble_points_get_data(), erscribble_stroke_get_point_data(), erscribble_stroke_new(), erscribble_stroke_new_with_attributes(), erscribble_strokes_detach_stroke(), erscribble_strokes_line_hit_test(), and erscribble_strokes_point_hit_test().
#define LOG_PREFIX "SCB" |