use forward declaration to treat the dependency of fragments

This commit is contained in:
Takashi Tamura 2017-03-29 19:11:44 +09:00
commit b32854bc59
4 changed files with 35 additions and 16 deletions

View file

@ -3,12 +3,11 @@
* The Ruby classes, for C++
* ------------------------------------------------------------ */
%include <rubyclasses.swg>
%include <rubystdcommon_forward.swg>
%fragment("StdTraits","header",fragment="StdTraitsCommon")
%fragment("StdTraits","header",fragment="StdTraitsCommon",fragment="StdTraitsForwardDeclaration")
{
%#define SWIG_RUBYSTDCOMMON
namespace swig {
/*
Traits that provides the from method