Move some header file includes into fragments for UTL languages
This commit is contained in:
parent
d55692c31e
commit
0d9a8721f4
16 changed files with 33 additions and 37 deletions
|
|
@ -52,9 +52,9 @@
|
|||
}
|
||||
}
|
||||
*/
|
||||
%{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
%define SWIG_CATCH_STDEXCEPT
|
||||
/* catching std::exception */
|
||||
catch (std::invalid_argument& e) {
|
||||
|
|
|
|||
|
|
@ -157,6 +157,14 @@
|
|||
#include <string>
|
||||
%}
|
||||
|
||||
%fragment("<stdexcept>", "header") %{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
|
||||
%fragment("<algorithm>", "header") %{
|
||||
#include <algorithm>
|
||||
%}
|
||||
|
||||
%fragment("SWIG_isfinite","header",fragment="<math.h>,<float.h>") %{
|
||||
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
|
||||
#ifndef SWIG_isfinite
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
//
|
||||
|
||||
%fragment("<string>");
|
||||
%{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
%fragment("Traits","header",fragment="<string>")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue