Definition at line 206 of file OOJSShipGroup.m.
◆ oo_clearJSSelf: [1/2]
| - (void) oo_clearJSSelf: |
|
(JSObject*) | selfVal |
|
|
implementation |
Extends class OOShipGroup.
Definition at line 226 of file OOJSShipGroup.m.
226 :(JSObject*)selfVal
227{
228 if (_jsSelf == selfVal)
229 _jsSelf = NULL;
230}
◆ oo_clearJSSelf: [2/2]
| - (void) oo_clearJSSelf: |
|
(JSValueConst) | selfVal |
|
|
implementation |
Extends class OOShipGroup.
Definition at line 219 of file OOJSShipGroup.m.
219 :(JSValueConst)selfVal
220{
221 if (JS_IsObject(_jsSelf) && JS_VALUE_GET_PTR(_jsSelf) == JS_VALUE_GET_PTR(selfVal))
222 _jsSelf = JS_UNDEFINED;
223}
◆ oo_jsValueInContext:
| - (JSValue) oo_jsValueInContext: |
|
(JSContext*) | context |
|
|
implementation |
Extends class OOShipGroup.
Definition at line 208 of file OOJSShipGroup.m.
208 :(JSContext*)context
209{
210 jsval result = JSVAL_NULL;
211
212 if (_jsSelf == NULL) {
214 if (_jsSelf != NULL) {
215 if (!JS_SetPrivate(context, _jsSelf, [self retain]))
216 _jsSelf = NULL;
217 }
218 }
219
220 if (_jsSelf != NULL)
221 result = OBJECT_TO_JSVAL(_jsSelf);
222
223 return result;
224}
static JSObject * sShipGroupPrototype
static JSClass sShipGroupClass
References sShipGroupClass, and sShipGroupPrototype.
The documentation for this category was generated from the following files: