"Fossies" - the Fresh Open Source Software Archive

Member "swig-4.1.1/Examples/test-suite/abstract_signature.i" (30 Nov 2022, 560 Bytes) of package /linux/misc/swig-4.1.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) ALAN Interactive Fiction Language source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "abstract_signature.i": 4.0.2_vs_4.1.0.

    1 %module abstract_signature
    2 
    3 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_foo; // Ruby, wrong class name
    4 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_bar; // Ruby, wrong class name
    5 
    6 %inline %{ 
    7 class abstract_foo 
    8 { 
    9 public: 
   10   abstract_foo() { }
   11   virtual ~abstract_foo() { }
   12   virtual int   meth(int meth_param) = 0; 
   13 }; 
   14  
   15  
   16 class abstract_bar : public abstract_foo 
   17 { 
   18 public: 
   19   abstract_bar() { }
   20  
   21   virtual ~abstract_bar() { }
   22   virtual int   meth(int meth_param) = 0; 
   23   int           meth(int meth_param_1, int meth_param_2) { return 0; }
   24 }; 
   25 
   26 %}