You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
![]()
4 years ago
|
/* -----------------------------------------------------------------------------
|
||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||
|
*
|
||
|
* guile.i
|
||
|
*
|
||
|
* SWIG Configuration File for Guile.
|
||
|
* ----------------------------------------------------------------------------- */
|
||
|
|
||
|
/* Macro for inserting Scheme code into the stub */
|
||
|
#define %scheme %insert("scheme")
|
||
|
#define %goops %insert("goops")
|
||
|
|
||
|
/* Return-styles */
|
||
|
%pragma(guile) return_nothing_doc = "Returns unspecified."
|
||
|
%pragma(guile) return_one_doc = "Returns $values."
|
||
|
|
||
|
%define %values_as_list
|
||
|
%pragma(guile) beforereturn = ""
|
||
|
%pragma(guile) return_multi_doc = "Returns a list of $num_values values: $values."
|
||
|
%enddef
|
||
|
%values_as_list /* the default style */
|
||
|
|
||
|
%define %values_as_vector
|
||
|
%pragma(guile) beforereturn = "GUILE_MAYBE_VECTOR"
|
||
|
%pragma(guile) return_multi_doc = "Returns a vector of $num_values values: $values."
|
||
|
%enddef
|
||
|
|
||
|
%define %multiple_values
|
||
|
%pragma(guile) beforereturn = "GUILE_MAYBE_VALUES"
|
||
|
%pragma(guile) return_multi_doc = "Returns $num_values values: $values."
|
||
|
%enddef
|
||
|
|
||
|
#define GUILE_APPEND_RESULT SWIG_APPEND_VALUE
|
||
|
|
||
|
%include <typemaps.i>
|