Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/scriptinterface/ScriptConversions.cpp
Show First 20 Lines • Show All 308 Lines • ▼ Show 20 Lines | |||||
TOJSVAL_CHAR(13) | TOJSVAL_CHAR(13) | ||||
TOJSVAL_CHAR(14) | TOJSVAL_CHAR(14) | ||||
TOJSVAL_CHAR(15) | TOJSVAL_CHAR(15) | ||||
TOJSVAL_CHAR(16) | TOJSVAL_CHAR(16) | ||||
TOJSVAL_CHAR(17) | TOJSVAL_CHAR(17) | ||||
TOJSVAL_CHAR(18) | TOJSVAL_CHAR(18) | ||||
TOJSVAL_CHAR(19) | TOJSVAL_CHAR(19) | ||||
TOJSVAL_CHAR(20) | TOJSVAL_CHAR(20) | ||||
TOJSVAL_CHAR(24) | |||||
TOJSVAL_CHAR(29) | TOJSVAL_CHAR(29) | ||||
TOJSVAL_CHAR(33) | TOJSVAL_CHAR(33) | ||||
TOJSVAL_CHAR(35) | TOJSVAL_CHAR(35) | ||||
TOJSVAL_CHAR(256) | |||||
#undef TOJSVAL_CHAR | #undef TOJSVAL_CHAR | ||||
template<> void ScriptInterface::ToJSVal<CStrW>(JSContext* cx, JS::MutableHandleValue ret, const CStrW& val) | template<> void ScriptInterface::ToJSVal<CStrW>(JSContext* cx, JS::MutableHandleValue ret, const CStrW& val) | ||||
{ | { | ||||
ToJSVal(cx, ret, static_cast<const std::wstring&>(val)); | ToJSVal(cx, ret, static_cast<const std::wstring&>(val)); | ||||
} | } | ||||
template<> void ScriptInterface::ToJSVal<CStr8>(JSContext* cx, JS::MutableHandleValue ret, const CStr8& val) | template<> void ScriptInterface::ToJSVal<CStr8>(JSContext* cx, JS::MutableHandleValue ret, const CStr8& val) | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator