Skip to content

Commit 7b44f40

Browse files
committed
Normalize macro usage
1 parent 900fd9c commit 7b44f40

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/flc_vector.i

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Macro definitions
1616
* ------------------------------------------------------------------------- */
1717

18-
%define EXTEND_STD_VECTOR_POD(CTYPE)
18+
%define %flc_extend_vector_pod(CTYPE)
1919
%apply (const SWIGTYPE *DATA, ::size_t SIZE)
2020
{ (const CTYPE* DATA, size_type SIZE) };
2121

@@ -50,6 +50,9 @@
5050
* These provide an efficient constructor from a Fortan array view. It also
5151
* offers a "view" functionality for getting an array pointer to the
5252
* vector-owned data.
53+
*
54+
* This definition is considered part of the \em public API so that downstream
55+
* apps that generate FLC-based bindings can instantiate their own POD vectors.
5356
*/
5457
%define %specialize_std_vector_pod(T)
5558

@@ -62,7 +65,7 @@ namespace std {
6265
SWIG_STD_VECTOR_COMMON(T, const T&)
6366
SWIG_STD_VECTOR_REF(T)
6467
%extend {
65-
EXTEND_STD_VECTOR_POD(T)
68+
%flc_extend_vector_pod(T)
6669
}
6770
};
6871
}

0 commit comments

Comments
 (0)