Skip to content

Instantly share code, notes, and snippets.

View michael-schaller's full-sized avatar

Michael Schaller michael-schaller

  • Google LLC
  • Munich/Germany
View GitHub Profile
@michael-schaller
michael-schaller / example.go
Created June 13, 2015 08:28
Example code for swig bug #435: Public abstract method gets wrapped; Constructor gets wrapped on director enabled abstract class
package example
/*
With director feature generally DISABLED:
-----------------------------------------
type Abs interface {
Swigcptr() uintptr
SwigIsAbs()
MakeAbs() // Bug! MakeAbs is abstract!
}
@michael-schaller
michael-schaller / gist:a6fd1b56b5b4d89358b7
Created December 29, 2014 07:32
Details for SWIG issue #290 (build1)
$ cd /tmp
$ mkdir git
$ cd git
$ git clone https://github.com/swig/swig.git
@michael-schaller
michael-schaller / gist:b1f5d630c29f4f17fd73
Last active August 29, 2015 14:12
Details for SWIG issue #290
$ cd /tmp
$ mkdir git
$ cd git
$ git clone https://github.com/swig/swig.git
@michael-schaller
michael-schaller / gist:45bd0220c1372ad5b294
Created December 25, 2014 10:43
List of untracked files after runnning 'make check' for the SWIG test-suite. The test-suite was configured for go, perl5 and python.
Examples/go/callback/example.go
Examples/go/callback/example_wrap.h
Examples/go/callback/runme
Examples/go/class/example.go
Examples/go/class/runme
Examples/go/constants/example.go
Examples/go/constants/runme
Examples/go/enum/example.go
Examples/go/enum/runme
Examples/go/extend/example.go
@michael-schaller
michael-schaller / example.cc
Created December 5, 2014 19:31
Simple Go SWIG C++ example
#include "example.h"
@michael-schaller
michael-schaller / example.cc
Last active August 29, 2015 14:10
SWIG: Inheritance of inner class from outer template class that uses another inner class as type generates unresolvable 401 warning
#include "example.h"
@michael-schaller
michael-schaller / example.cc
Created November 7, 2014 14:41
Go example that wraps a forward delcared nested C++ class that inherits from a forward delcared nested abstract C++ class via SWIG
#include "example.h"
@michael-schaller
michael-schaller / example.cc
Created November 7, 2014 14:38
Go example that wraps a nested C++ class that inherits from a nested abstract C++ class via SWIG
#include "example.h"
@michael-schaller
michael-schaller / example.cc
Last active August 29, 2015 14:08
Go example that wraps a simple C++ class via SWIG
#include "example.h"
Example::Example() {}
Example::~Example() {}