Changeset View
Changeset View
Standalone View
Standalone View
source/scriptinterface/ScriptConversions.cpp
Show All 16 Lines | |||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "ScriptConversions.h" | #include "ScriptConversions.h" | ||||
#include "graphics/Entity.h" | #include "graphics/Entity.h" | ||||
#include "maths/Vector2D.h" | #include "maths/Vector2D.h" | ||||
#include "ps/utf16string.h" | #include "ps/utf16string.h" | ||||
#include "ps/CLogger.h" | |||||
#include "ps/CStr.h" | #include "ps/CStr.h" | ||||
#define FAIL(msg) STMT(LOGERROR(msg); return false) | #define FAIL(msg) STMT(LOGERROR(msg); return false) | ||||
// Implicit type conversions often hide bugs, so warn about them | // Implicit type conversions often hide bugs, so warn about them | ||||
#define WARN_IF_NOT(c, v) STMT(if (!(c)) { JS_ReportWarning(rq.cx, "Script value conversion check failed: %s (got type %s)", #c, InformalValueTypeName(v)); }) | #define WARN_IF_NOT(c, v) STMT(if (!(c)) { JS_ReportWarning(rq.cx, "Script value conversion check failed: %s (got type %s)", #c, InformalValueTypeName(v)); }) | ||||
// TODO: SpiderMonkey: Follow upstream progresses about JS_InformalValueTypeName in the API | // TODO: SpiderMonkey: Follow upstream progresses about JS_InformalValueTypeName in the API | ||||
▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator