Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CGUISize.cpp File Reference
#include "precompiled.h"
#include "CGUISize.h"
#include "gui/Scripting/JSInterface_GUISize.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include "scriptinterface/Object.h"
#include "scriptinterface/ScriptInterface.h"
Include dependency graph for CGUISize.cpp:

Macros

#define P(x, y, z)
 
#define P(x, y, z)
 

Macro Definition Documentation

◆ P [1/2]

#define P (   x,
  y,
 
)
Value:
if (!Script::SetProperty(rq, ret, #z, x.y)) \
{ \
ScriptException::Raise(rq, "Could not SetProperty '%s'", #z); \
return; \
}
void Raise(const ScriptRequest &rq, const char *format,...)
Raise a JS exception from C++ code.
Definition: ScriptExceptions.cpp:95
bool SetProperty(const ScriptRequest &rq, JS::HandleValue obj, PropType name, JS::HandleValue value, bool constant=false, bool enumerable=true)
Set the named property on the given object.
Definition: Object.h:98

◆ P [2/2]

#define P (   x,
  y,
 
)
Value:
if (!Script::GetProperty(rq, v, #z, x.y))\
{\
LOGERROR("CGUISize could not get object property '%s'", #z);\
return false;\
}
bool GetProperty(const ScriptRequest &rq, JS::HandleValue obj, PropType name, JS::MutableHandleValue out)
Get the named property on the given object.
Definition: Object.h:37