[ruby] use %fragment to clarify the dependency of code.

This commit is contained in:
Takashi Tamura 2017-02-23 21:08:04 +09:00
commit 4f31f5d0a3
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ static rb_encoding *swig_ruby_internal_encoding;
#endif
%}
%init{
%fragment("SWIG_ruby_wstring_encoding_init", "init") {
swig_ruby_wstring_encoding = rb_enc_find( SWIG_RUBY_WSTRING_ENCODING );
swig_ruby_internal_encoding = rb_enc_find( SWIG_RUBY_INTERNAL_ENCODING );
}