#include <stdlib.h>
#include <string.h>
+#include <string_view>
#include <stdio.h>
/* Support for throwing C# exceptions from C/C++. There are two types:
char * jresult ;
Dali::TypeInfo *arg1 = (Dali::TypeInfo *) 0 ;
Dali::Property::Index arg2 ;
- std::string *result = 0 ;
+ std::string_view result;
arg1 = (Dali::TypeInfo *)jarg1;
arg2 = (Dali::Property::Index)jarg2;
{
try {
- result = (std::string *) &((Dali::TypeInfo const *)arg1)->GetPropertyName(arg2);
+ result = ((Dali::TypeInfo const *)arg1)->GetPropertyName(arg2);
} CALL_CATCH_EXCEPTION(0);
}
- jresult = SWIG_csharp_string_callback(result->c_str());
+ jresult = SWIG_csharp_string_callback(result.data());
return jresult;
}