Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OOShipGroup(OOJavaScriptExtensions) Category Reference

Instance Methods

(jsval) - oo_jsValueInContext: [implementation]
 
(void) - oo_clearJSSelf: [implementation]
 

Detailed Description

Definition at line 225 of file OOJSShipGroup.m.

Method Documentation

◆ oo_clearJSSelf:

- (void) oo_clearJSSelf: (JSObject *) selfVal
implementation

Extends class OOShipGroup.

Definition at line 353 of file OOJSShipGroup.m.

246 :(JSObject *)selfVal
247{
248 if (_jsSelf == selfVal) _jsSelf = NULL;
249}

References EXPECT_NOT, MIN, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJS_THIS, OOJSNativeObjectOfClassFromJSValue(), and OOJSReportBadArguments().

+ Here is the call graph for this function:

◆ oo_jsValueInContext:

- (jsval) oo_jsValueInContext: (JSContext *) context
implementation

Extends class OOShipGroup.

Definition at line 353 of file OOJSShipGroup.m.

227 :(JSContext *)context
228{
229 jsval result = JSVAL_NULL;
230
231 if (_jsSelf == NULL)
232 {
233 _jsSelf = JS_NewObject(context, &sShipGroupClass, sShipGroupPrototype, NULL);
234 if (_jsSelf != NULL)
235 {
236 if (!JS_SetPrivate(context, _jsSelf, [self retain])) _jsSelf = NULL;
237 }
238 }
239
240 if (_jsSelf != NULL) result = OBJECT_TO_JSVAL(_jsSelf);
241
242 return result;
243}
static JSObject * sShipGroupPrototype
static JSClass sShipGroupClass

The documentation for this category was generated from the following file: