mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
768e812e45
* On windows it's strongly desired to be able to compile straight out of a clean checkout or source download. This means anyone can download the source and investigate something quickly, without having to worry about the hassle of figuring out how the project downloads 3rd party dependencies, fetching them, getting them registered in the right place. * This can't be put in a submodule as git submodules don't get downloaded by default so people new to git will get confusing compilation messages, and someone downloading the source from github directly without cloning via git won't get submodules included. * It does add some extra size to a fresh download/checkout which is unfortunate, but absolutely worth the cost. Shallow checkouts still aren't unfeasibly large, and it's only a one-off cost at clone time.
32 lines
829 B
OpenEdge ABL
32 lines
829 B
OpenEdge ABL
/*
|
|
Vectors + allocators
|
|
*/
|
|
|
|
%fragment("StdVectorATraits","header",fragment="StdSequenceTraits")
|
|
%{
|
|
namespace swig {
|
|
template <class T, class A>
|
|
struct traits_asptr<std::vector<T,A> > {
|
|
typedef std::vector<T,A> vector_type;
|
|
typedef T value_type;
|
|
static int asptr(PyObject *obj, vector_type **vec) {
|
|
return traits_asptr_stdseq<vector_type>::asptr(obj, vec);
|
|
}
|
|
};
|
|
|
|
template <class T, class A>
|
|
struct traits_from<std::vector<T,A> > {
|
|
typedef std::vector<T,A> vector_type;
|
|
static PyObject *from(const vector_type& vec) {
|
|
return traits_from_stdseq<vector_type>::from(vec);
|
|
}
|
|
};
|
|
}
|
|
%}
|
|
|
|
|
|
#define %swig_vector_methods(Type...) %swig_sequence_methods(Type)
|
|
#define %swig_vector_methods_val(Type...) %swig_sequence_methods_val(Type);
|
|
|
|
%include <std/std_vectora.i>
|