Add user documentation to the export package extension.
This commit is contained in:
parent
c1fad12bdb
commit
c8b15f64a0
1 changed files with 11 additions and 8 deletions
|
|
@ -284,9 +284,11 @@ Let's edit the interface file such that the C type "div_t*" is changed
|
||||||
%feature("export");
|
%feature("export");
|
||||||
|
|
||||||
%feature("inline") lispsort_double;
|
%feature("inline") lispsort_double;
|
||||||
|
|
||||||
%feature("intern_function", "my-lispify") lispsort_double;
|
%feature("intern_function", "my-lispify") lispsort_double;
|
||||||
|
%feature("export", package="'some-other-package") lispsort_double;
|
||||||
|
|
||||||
%rename func123 renamed_cool_func;
|
%rename func123 renamed_cool_func;
|
||||||
|
|
||||||
%ignore "pointer_func";
|
%ignore "pointer_func";
|
||||||
|
|
||||||
%include "test.h"
|
%include "test.h"
|
||||||
|
|
@ -310,11 +312,12 @@ The feature <i>intern_function</i> ensures that all C names are
|
||||||
lispsort_double;</i>, here we are using an additional feature
|
lispsort_double;</i>, here we are using an additional feature
|
||||||
which allows us to use our lispify function.
|
which allows us to use our lispify function.
|
||||||
</p>
|
</p>
|
||||||
<p>The <i>export</i> feature allows us to export the symbols. The <i>inline</i>
|
<p>The <i>export</i> feature allows us to export the symbols. If
|
||||||
feature declaims the declared function as inline. The <i>rename</i>
|
the <i>package</i> argument is given, then the symbol will be exported to
|
||||||
directive allows us to change the name(it is useful when
|
the specified Lisp package. The <i>inline</i> feature declaims the
|
||||||
generating C wrapper code for handling overloaded
|
declared function as inline. The <i>rename</i> directive allows us to
|
||||||
functions). The <i>ignore</i> directive ignores a certain
|
change the name(it is useful when generating C wrapper code for handling
|
||||||
|
overloaded functions). The <i>ignore</i> directive ignores a certain
|
||||||
declaration.
|
declaration.
|
||||||
</p>
|
</p>
|
||||||
<p>There are several other things which are possible, to see some
|
<p>There are several other things which are possible, to see some
|
||||||
|
|
@ -381,7 +384,7 @@ The feature <i>intern_function</i> ensures that all C names are
|
||||||
(n :int)
|
(n :int)
|
||||||
(array :pointer))
|
(array :pointer))
|
||||||
|
|
||||||
(cl:export '#.(my-lispify "lispsort_double" 'function))
|
(cl:export '#.(my-lispify "lispsort_double" 'function) 'some-other-package)
|
||||||
|
|
||||||
(cffi:defcenum #.(swig-lispify "color" 'enumname)
|
(cffi:defcenum #.(swig-lispify "color" 'enumname)
|
||||||
#.(swig-lispify "RED" 'enumvalue :keyword)
|
#.(swig-lispify "RED" 'enumvalue :keyword)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue