Fix R return by C++11 const ref enum classes
This commit is contained in:
parent
f5b53683f0
commit
39e3c3b9d7
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ unsigned char *OUTPUT
|
||||||
%{ temp = ($*1_ltype)INTEGER($input)[0];
|
%{ temp = ($*1_ltype)INTEGER($input)[0];
|
||||||
$1 = &temp; %}
|
$1 = &temp; %}
|
||||||
|
|
||||||
%typemap(out) const enum SWIGTYPE & %{ $result = Rf_ScalarInteger(*$1); %}
|
%typemap(out) const enum SWIGTYPE & %{ $result = Rf_ScalarInteger((int)*$1); %}
|
||||||
|
|
||||||
%typemap(memberin) char[] %{
|
%typemap(memberin) char[] %{
|
||||||
if ($input) strcpy($1, $input);
|
if ($input) strcpy($1, $input);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue