[ruby] use %fragment to clarify the dependency of code.
This commit is contained in:
parent
04a7c4f8b8
commit
4f31f5d0a3
2 changed files with 3 additions and 3 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue