Go to the source code of this file.
|
#define | FAIL(msg) STMT(JS_ReportError(cx, msg); return false) |
|
#define | WARN_IF_NOT(c, v) STMT(if (!(c)) { JS_ReportWarning(cx, "Script value conversion check failed: %s (got type %s)", #c, JS_GetTypeName(cx, JS_TypeOfValue(cx, v))); }) |
|
#define | VECTOR(T) |
|
|
template<> |
bool | ScriptInterface::FromJSVal< std::wstring > (JSContext *cx, jsval v, std::wstring &out) |
|
template<> |
bool | ScriptInterface::FromJSVal< std::string > (JSContext *cx, jsval v, std::string &out) |
|
template<> |
jsval | ScriptInterface::ToJSVal< std::wstring > (JSContext *cx, const std::wstring &val) |
|
template<> |
jsval | ScriptInterface::ToJSVal< std::string > (JSContext *cx, const std::string &val) |
|
template<typename T > |
static jsval | ToJSVal_vector (JSContext *cx, const std::vector< T > &val) |
|
template<typename T > |
static bool | FromJSVal_vector (JSContext *cx, jsval v, std::vector< T > &out) |
|
template<> |
jsval | ScriptInterface::ToJSVal< std::vector< IComponent * > > (JSContext *cx, const std::vector< IComponent * > &val) |
|
template<> |
bool | ScriptInterface::FromJSVal< std::vector< Entity > > (JSContext *cx, jsval v, std::vector< Entity > &out) |
|
#define FAIL |
( |
|
msg | ) |
STMT(JS_ReportError(cx, msg); return false) |
Value:template<> jsval ScriptInterface::ToJSVal<std::vector<T> >(JSContext* cx, const std::vector<T>& val) \
{ \
} \
template<>
bool ScriptInterface::FromJSVal<std::vector<T> >(JSContext* cx, jsval v, std::vector<T>&
out) \
{ \
}
static void out(const wchar_t *fmt,...)
static bool FromJSVal_vector(JSContext *cx, jsval v, std::vector< T > &out)
static jsval ToJSVal_vector(JSContext *cx, const std::vector< T > &val)
Definition at line 319 of file ScriptConversions.cpp.
#define WARN_IF_NOT |
( |
|
c, |
|
|
|
v |
|
) |
| STMT(if (!(c)) { JS_ReportWarning(cx, "Script value conversion check failed: %s (got type %s)", #c, JS_GetTypeName(cx, JS_TypeOfValue(cx, v))); }) |
template<typename T >
static bool FromJSVal_vector |
( |
JSContext * |
cx, |
|
|
jsval |
v, |
|
|
std::vector< T > & |
out |
|
) |
| |
|
static |
template<typename T >
static jsval ToJSVal_vector |
( |
JSContext * |
cx, |
|
|
const std::vector< T > & |
val |
|
) |
| |
|
static |