aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-plugin-mono.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-03-04 11:07:18 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-03-04 11:07:18 +0800
commit9b6b99d33db08122c8bd039f15f197c5ae7cb5d1 (patch)
tree6698198e726c42c6b83371cb4daefb85d5b67a84 /e-util/e-plugin-mono.c
parent15963543eff3dfaec694f12c1a34129b44f518a3 (diff)
downloadgsoc2013-evolution-9b6b99d33db08122c8bd039f15f197c5ae7cb5d1.tar.gz
gsoc2013-evolution-9b6b99d33db08122c8bd039f15f197c5ae7cb5d1.tar.zst
gsoc2013-evolution-9b6b99d33db08122c8bd039f15f197c5ae7cb5d1.zip
Remove/disable debug.
2005-03-01 Not Zed <NotZed@Ximian.com> * *.c: Remove/disable debug. svn path=/trunk/; revision=28948
Diffstat (limited to 'e-util/e-plugin-mono.c')
-rw-r--r--e-util/e-plugin-mono.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/e-util/e-plugin-mono.c b/e-util/e-plugin-mono.c
index 9b7c39a3f9..2692620133 100644
--- a/e-util/e-plugin-mono.c
+++ b/e-util/e-plugin-mono.c
@@ -11,6 +11,8 @@
#include <mono/metadata/assembly.h>
#include <mono/jit/jit.h>
+#define d(x)
+
static MonoDomain *domain;
/* ********************************************************************** */
@@ -68,7 +70,7 @@ epm_invoke(EPlugin *ep, const char *name, void *data)
if (epm->handler == NULL
|| (p->klass = mono_class_from_name(mono_assembly_get_image(p->assembly), "", epm->handler)) == NULL) {
- printf("Using static callbacks only");
+ d(printf("Using static callbacks only"));
} else {
p->plugin = mono_object_new(domain, p->klass);
/* could conceivably init with some context too */
@@ -79,7 +81,7 @@ epm_invoke(EPlugin *ep, const char *name, void *data)
m = g_hash_table_lookup(p->methods, name);
if (m == NULL) {
if (p->klass) {
- printf("looking up method '%s' in class\n", name);
+ d(printf("looking up method '%s' in class\n", name));
/* class method */
d = mono_method_desc_new(name, FALSE);
if (d == NULL) {
@@ -93,7 +95,7 @@ epm_invoke(EPlugin *ep, const char *name, void *data)
return NULL;
}
} else {
- printf("looking up static method '%s'\n", name);
+ d(printf("looking up static method '%s'\n", name));
/* static method */
d = mono_method_desc_new(name, FALSE);
if (d == NULL) {
@@ -121,7 +123,7 @@ epm_invoke(EPlugin *ep, const char *name, void *data)
if (res) {
void **p = mono_object_unbox(res);
- printf("mono method returned '%p' %ld\n", *p, (long int)*p);
+ d(printf("mono method returned '%p' %ld\n", *p, (long int)*p));
return *p;
} else
return NULL;