We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dbceb9 commit 74e7e57Copy full SHA for 74e7e57
include/cpp/marshal/Marshal.hpp
@@ -35,6 +35,7 @@ inline cpp::marshal::View<char> cpp::marshal::Marshal::asCharView(const ::String
35
36
inline cpp::marshal::View<char16_t> cpp::marshal::Marshal::asWideCharView(const ::String& string)
37
{
38
+#if defined(HX_SMART_STRINGS)
39
if (null() == string)
40
41
hx::NullReference("string", false);
@@ -46,6 +47,9 @@ inline cpp::marshal::View<char16_t> cpp::marshal::Marshal::asWideCharView(const
46
47
}
48
49
return View<char16_t>(const_cast<char16_t*>(string.raw_wptr()), string.length);
50
+#else
51
+ return hx::Throw(HX_CSTRING("HX_SMART_STRINGS not defined"));
52
+#endif
53
54
55
template<class T>
0 commit comments