Octave: turn on autodoc in examples, so that feature is tested
This commit is contained in:
parent
5c07625d05
commit
a93d5eac4e
16 changed files with 39 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module(directors="1") swigexample
|
%module(directors="1") swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
/* A few preprocessor macros */
|
/* A few preprocessor macros */
|
||||||
|
|
||||||
#define ICONST 42
|
#define ICONST 42
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%contract gcd(int x, int y) {
|
%contract gcd(int x, int y) {
|
||||||
require:
|
require:
|
||||||
x >= 0;
|
x >= 0;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module(directors="1") swigexample
|
%module(directors="1") swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
// From B. Strousjoup, "The C++ Programming Language, Third Edition", p. 514
|
// From B. Strousjoup, "The C++ Programming Language, Third Edition", p. 514
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
/* module name given on cmdline */
|
/* module name given on cmdline */
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
#pragma SWIG nowarn=SWIGWARN_IGNORE_OPERATOR_EQ
|
#pragma SWIG nowarn=SWIGWARN_IGNORE_OPERATOR_EQ
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
extern void add(int *, int *, int *);
|
extern void add(int *, int *, int *);
|
||||||
extern void sub(int *, int *, int *);
|
extern void sub(int *, int *, int *);
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
extern int gcd(int x, int y);
|
extern int gcd(int x, int y);
|
||||||
extern double Foo;
|
extern double Foo;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module swigexample
|
%module swigexample
|
||||||
|
|
||||||
|
%feature("autodoc", 1);
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue