Permalink
Browse files

Octave: turn on autodoc in examples, so that feature is tested

  • Loading branch information...
1 parent 98dc50b commit 1a0f3797f9ea904646e9f5f1b5ba1de271cffa61 @kwwette kwwette committed Jun 2, 2014
@@ -1,5 +1,8 @@
/* File : example.i */
%module(directors="1") swigexample
+
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}
@@ -1,6 +1,8 @@
/* File : example.i */
%module swigexample
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}
@@ -1,6 +1,8 @@
/* File : example.i */
%module swigexample
+%feature("autodoc", 1);
+
/* A few preprocessor macros */
#define ICONST 42
@@ -1,6 +1,8 @@
/* File : example.i */
%module swigexample
+%feature("autodoc", 1);
+
%contract gcd(int x, int y) {
require:
x >= 0;
@@ -1,6 +1,8 @@
/* File : example.i */
%module swigexample
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}
@@ -1,5 +1,8 @@
/* File : example.i */
%module(directors="1") swigexample
+
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}
@@ -1,5 +1,8 @@
/* File : example.i */
%module swigexample
+
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}
@@ -1,5 +1,8 @@
/* File : example.i */
%module swigexample
+
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}
@@ -1,6 +1,7 @@
/* File : example.i */
%module swigexample
+%feature("autodoc", 1);
%inline %{
// From B. Strousjoup, "The C++ Programming Language, Third Edition", p. 514
@@ -1,5 +1,8 @@
/* File : example.i */
/* module name given on cmdline */
+
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}
@@ -1,6 +1,10 @@
/* File : example.i */
%module swigexample
+
+%feature("autodoc", 1);
+
#pragma SWIG nowarn=SWIGWARN_IGNORE_OPERATOR_EQ
+
%{
#include "example.h"
%}
@@ -1,6 +1,8 @@
/* File : example.i */
%module swigexample
+%feature("autodoc", 1);
+
%{
extern void add(int *, int *, int *);
extern void sub(int *, int *, int *);
@@ -4,6 +4,8 @@
%module swigexample
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}
@@ -1,6 +1,8 @@
/* File : example.i */
%module swigexample
+%feature("autodoc", 1);
+
%inline %{
extern int gcd(int x, int y);
extern double Foo;
@@ -1,6 +1,8 @@
/* File : example.i */
%module swigexample
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}
@@ -1,5 +1,8 @@
/* File : example.i */
%module swigexample
+
+%feature("autodoc", 1);
+
%{
#include "example.h"
%}

0 comments on commit 1a0f379

Please sign in to comment.