Fixed handling of char. This was needed due to changes in handling of %constants in ruby.cxx
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
10c00d74b0
commit
2531e8d5f5
1 changed files with 4 additions and 2 deletions
|
|
@ -86,8 +86,10 @@
|
|||
|
||||
/* --- Constants --- */
|
||||
|
||||
%typemap(constant) char
|
||||
"rb_define_const($module,\"$symname\", rb_str_new($1,1));";
|
||||
%typemap(constant) char {
|
||||
char temp = $1;
|
||||
rb_define_const($module,"$symname", rb_str_new(&temp,1));
|
||||
}
|
||||
|
||||
%typemap(constant) char *
|
||||
"rb_define_const($module,\"$symname\", rb_str_new2($1));";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue