Changeset View
Changeset View
Standalone View
Standalone View
source/scriptinterface/ScriptConversions.cpp
Show First 20 Lines • Show All 292 Lines • ▼ Show 20 Lines | |||||
{ \ | { \ | ||||
ToJSVal(cx, ret, static_cast<const wchar_t*>(val)); \ | ToJSVal(cx, ret, static_cast<const wchar_t*>(val)); \ | ||||
} \ | } \ | ||||
template<> void ScriptInterface::ToJSVal<char[N]>(JSContext* cx, JS::MutableHandleValue ret, const char (&val)[N]) \ | template<> void ScriptInterface::ToJSVal<char[N]>(JSContext* cx, JS::MutableHandleValue ret, const char (&val)[N]) \ | ||||
{ \ | { \ | ||||
ToJSVal(cx, ret, static_cast<const char*>(val)); \ | ToJSVal(cx, ret, static_cast<const char*>(val)); \ | ||||
} | } | ||||
TOJSVAL_CHAR(3) | |||||
TOJSVAL_CHAR(5) | TOJSVAL_CHAR(5) | ||||
TOJSVAL_CHAR(6) | TOJSVAL_CHAR(6) | ||||
TOJSVAL_CHAR(7) | TOJSVAL_CHAR(7) | ||||
TOJSVAL_CHAR(8) | TOJSVAL_CHAR(8) | ||||
TOJSVAL_CHAR(9) | TOJSVAL_CHAR(9) | ||||
TOJSVAL_CHAR(10) | TOJSVAL_CHAR(10) | ||||
TOJSVAL_CHAR(11) | TOJSVAL_CHAR(11) | ||||
TOJSVAL_CHAR(12) | TOJSVAL_CHAR(12) | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator