[pybank] Add a warning for void args
- From: Johan Dahlin <johan src gnome org>
- To: svn-commits-list gnome org
- Subject: [pybank] Add a warning for void args
- Date: Tue, 2 Jun 2009 10:45:58 -0400 (EDT)
commit da655d071a61b264749e8b0d047bb307c71841bc
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date: Thu May 14 14:13:47 2009 +0200
Add a warning for void args
---
bank/bank-argument.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/bank/bank-argument.c b/bank/bank-argument.c
index 82cc712..b9c55d5 100644
--- a/bank/bank-argument.c
+++ b/bank/bank-argument.c
@@ -176,6 +176,8 @@ pyg_argument_to_pyobject(GArgument *arg, GITypeInfo *type_info)
switch (type_tag) {
case GI_TYPE_TAG_VOID:
+ // TODO: Should we take this as a buffer?
+ g_warning("pybank doesn't know what to do with void types");
obj = Py_None;
break;
case GI_TYPE_TAG_GLIST:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]