From dca5aa6db8f0dbcae283aee21605d8d1a85d7f94 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 5 Aug 2015 22:58:05 +0100 Subject: Add ptototype method type to binding This allows additional cdata to be added to the generated prototype constructor. --- src/nsgenbind-ast.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/nsgenbind-ast.h') diff --git a/src/nsgenbind-ast.h b/src/nsgenbind-ast.h index 0b0fcfd..2a384b2 100644 --- a/src/nsgenbind-ast.h +++ b/src/nsgenbind-ast.h @@ -45,11 +45,12 @@ enum genbind_type_modifier { /* binding method types */ enum genbind_method_type { - GENBIND_METHOD_TYPE_INIT = 0, - GENBIND_METHOD_TYPE_FINI = 1, /**< */ - GENBIND_METHOD_TYPE_METHOD = 2, /**< */ - GENBIND_METHOD_TYPE_GETTER = 3, /**< */ - GENBIND_METHOD_TYPE_SETTER = 4, /**< */ + GENBIND_METHOD_TYPE_INIT = 0, /**< binding method is initialiser */ + GENBIND_METHOD_TYPE_FINI, /**< binding method is finalizer */ + GENBIND_METHOD_TYPE_METHOD, /**< binding method is a method */ + GENBIND_METHOD_TYPE_GETTER, /**< binding method is a getter */ + GENBIND_METHOD_TYPE_SETTER, /**< binding method is a setter */ + GENBIND_METHOD_TYPE_PROTOTYPE, /**< binding method is a prototype */ }; struct genbind_node; -- cgit v1.2.3