mirror of https://github.com/swig/swig
fix lextype testcase when compiled as c++ as is the case with octave
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
26cc9252d9
commit
db7ed25900
|
@ -30,13 +30,13 @@ code is not functioning properly it will fail to compile.
|
|||
%typemap(in) Animal ()
|
||||
{
|
||||
void *space_needed = malloc(HEIGHT_$1_lextype * WIDTH_$1_lextype);
|
||||
$1 = space_needed;
|
||||
$1 = ($1_ltype)space_needed;
|
||||
}
|
||||
|
||||
%typemap(in) Animal[2] ()
|
||||
{
|
||||
void *space_needed = malloc(2 * HEIGHT_$1_lextype * WIDTH_$1_lextype);
|
||||
$1 = space_needed;
|
||||
$1 = ($1_ltype)space_needed;
|
||||
}
|
||||
|
||||
%inline %{
|
||||
|
|
Loading…
Reference in New Issue