summaryrefslogtreecommitdiff
path: root/src/arch/operand.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-11-24 21:12:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-11-24 21:12:48 (GMT)
commit16f9d3b943e272112e01f5bc51e922e2ea2ddfb8 (patch)
tree293ed29545a7e097d3b70d3d95d513fc25866fd1 /src/arch/operand.h
parent532fc81565104f64b33b3ac94dfcf0762209f751 (diff)
Cleaned operands, using class functions and destructors.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@426 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/operand.h')
-rw-r--r--src/arch/operand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/operand.h b/src/arch/operand.h
index f4a941e..724b634 100644
--- a/src/arch/operand.h
+++ b/src/arch/operand.h
@@ -35,7 +35,9 @@
#define G_TYPE_ARCH_OPERAND g_arch_operand_get_type()
#define G_ARCH_OPERAND(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_arch_operand_get_type(), GArchOperand))
#define G_IS_ARCH_OPERAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_arch_operand_get_type()))
-#define G_ARCH_OPERAND_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), g_arch_operand_get_type(), GArchOperandIface))
+#define G_ARCH_OPERAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_ARCH_OPERAND, GArchOperandClass))
+#define G_IS_ARCH_OPERAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_ARCH_OPERAND))
+#define G_ARCH_OPERAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_ARCH_OPERAND, GArchOperandClass))
/* Définition générique d'un opérande d'architecture (instance) */