search for: demo_funct

Displaying 1 result from an estimated 1 matches for "demo_funct".

2012 Mar 20
2
Writing a MatchDecider and exposing it to PHP
...l inclusive; public: MyDecider??(Xapian::valueno slot, bool inclusive_) : valuenum(slot), inclusive(inclusive_) { } bool operator()(const Xapian::Document& doc) const; }; #endif I have a very simple SWIG interface file, MyDecider.i %module mydecider %{ extern int demo_function(int x); #include <xapian.h> #include "mydecider.h" %} extern int demo_function(int x); #include <xapian.h> #include "mydecider.h" This successfully exports my 'demo_function' to PHP, but not the MyDecider class ($d=new MyDecider fails with a clas...