Expose SetSuppressCtor from Go.

Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/570984e7
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/570984e7
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/570984e7

Branch: refs/heads/master
Commit: 570984e73a4e8c6e3feecde30e151db77c8d134a
Parents: bd8b54b
Author: Marvin Humphrey <[email protected]>
Authored: Mon Jul 27 16:07:24 2015 -0700
Committer: Marvin Humphrey <[email protected]>
Committed: Thu Jul 30 10:46:20 2015 -0700

----------------------------------------------------------------------
 compiler/go/cfc/cfc.go | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/570984e7/compiler/go/cfc/cfc.go
----------------------------------------------------------------------
diff --git a/compiler/go/cfc/cfc.go b/compiler/go/cfc/cfc.go
index 1b47beb..04004e2 100644
--- a/compiler/go/cfc/cfc.go
+++ b/compiler/go/cfc/cfc.go
@@ -288,3 +288,11 @@ func (obj *BindGoClass) SetSuppressStruct(suppressStruct 
bool) {
                C.CFCGoClass_set_suppress_struct(obj.ref, C.int(0))
        }
 }
+
+func (obj *BindGoClass) SetSuppressCtor(suppressCtor bool) {
+       if suppressCtor {
+               C.CFCGoClass_set_suppress_ctor(obj.ref, C.int(1))
+       } else {
+               C.CFCGoClass_set_suppress_ctor(obj.ref, C.int(0))
+       }
+}

Reply via email to