Currently I migrated our project to embwiz version 13.02 from version 10
then some code optimization is happening
example :
Have below code in embedded wizard
var string name = "";
$if !$prototyper && ( $platform != *.WebGL.* ) && ( $platform != *.Win32.* )
native
{
BYTE pName[32];
BYTE length = sizeof(pName);
name = EwNewStringUtf8( productName, PNameLength );
}
$else
name = "name";
$endif
return name;
Generated code is in below
XString DeviceDeviceClass_OnGetProductName( DeviceDeviceClass _this )
{
/* Dummy expressions to avoid the 'C' warning 'unused argument'. */
EW_UNUSED_ARG( _this );
{
BYTE pName[32];
BYTE length = sizeof(pName);
name = EwNewStringUtf8( productName, PNameLength );
}
return 0;
}
String variable name is removed from generated code,
How to solve this issue?
Thank you