summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/main.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2002-11-08 08:02:15 +0000
committerCarsten Haitzler <raster@rasterman.com>2002-11-08 08:02:15 +0000
commit56b5e15f26e16ec835fdcdc7649347f23fb6abf6 (patch)
tree3f86155cee8ee5cec8ae19fcfba6d2625889bff8 /legacy/evas/src/lib/main.c
parent5c822574647037eddc7940c1d29702e215c4c832 (diff)
code move
SVN revision: 6445
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/main.c70
1 files changed, 70 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/main.c b/legacy/evas/src/lib/main.c
new file mode 100644
index 0000000000..823acfd88a
--- /dev/null
+++ b/legacy/evas/src/lib/main.c
@@ -0,0 +1,70 @@
1#include "evas_common.h"
2#include "evas_private.h"
3#include "Evas.h"
4
5void
6evas_debug_error(void)
7{
8 fprintf(stderr,
9 "*** EVAS ERROR: Evas Magic Check Failed!!!\n");
10}
11
12void
13evas_debug_input_null(void)
14{
15 fprintf(stderr,
16 " Input object pointer is NULL!\n");
17}
18
19void
20evas_debug_magic_null(void)
21{
22 fprintf(stderr,
23 " Input object is zero'ed out (maybe a freed object or zero-filled RAM)!\n");
24}
25
26void
27evas_debug_magic_wrong(DATA32 expected, DATA32 supplied)
28{
29 fprintf(stderr,
30 " Input object is wrong type\n"
31 " Expected: %08x - %s\n"
32 " Supplied: %08s - %s\n",
33 expected, evas_debug_magic_string_get(expected),
34 supplied, evas_debug_magic_string_get(supplied));
35}
36
37char *
38evas_debug_magic_string_get(DATA32 magic)
39{
40 switch (magic)
41 {
42 case MAGIC_EVAS:
43 return "Evas";
44 break;
45 case MAGIC_OBJ:
46 return "Evas_Object";
47 break;
48 case MAGIC_OBJ_RECTANGLE:
49 return "Evas_Object (Rectangle)";
50 break;
51 case MAGIC_OBJ_LINE:
52 return "Evas_Object (Line)";
53 break;
54 case MAGIC_OBJ_GRADIENT:
55 return "Evas_Object (Gradient)";
56 break;
57 case MAGIC_OBJ_POLYGON:
58 return "Evas_Object (Polygon)";
59 break;
60 case MAGIC_OBJ_IMAGE:
61 return "Evas_Object (Image)";
62 break;
63 case MAGIC_OBJ_TEXT:
64 return "Evas_Object (Text)";
65 break;
66 default:
67 return "<UNKNOWN>";
68 };
69 return "<UNKNOWN>";
70}