Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOEquipmentType(OOJavaScriptExtensions) Category Reference

Instance Methods

(jsval) - oo_jsValueInContext: [implementation]
 
(NSString *) - oo_jsClassName [implementation]
 
(void) - oo_clearJSSelf: [implementation]
 

Detailed Description

Definition at line 496 of file OOJSEquipmentInfo.m.

Method Documentation

◆ oo_clearJSSelf:

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

Extends class OOEquipmentType.

Definition at line 530 of file OOJSEquipmentInfo.m.

519 :(JSObject *)selfVal
520{
521 if (_jsSelf == selfVal) _jsSelf = NULL;
522}

References MIN, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSReportBadArguments(), and OOStringFromJSValue().

+ Here is the call graph for this function:

◆ oo_jsClassName

- (NSString *) oo_jsClassName
implementation

Extends class OOEquipmentType.

Definition at line 530 of file OOJSEquipmentInfo.m.

514{
515 return @"EquipmentInfo";
516}

◆ oo_jsValueInContext:

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

Extends class OOEquipmentType.

Definition at line 530 of file OOJSEquipmentInfo.m.

498 :(JSContext *)context
499{
500 if (_jsSelf == NULL)
501 {
502 _jsSelf = JS_NewObject(context, &sEquipmentInfoClass, sEquipmentInfoPrototype, NULL);
503 if (_jsSelf != NULL)
504 {
505 if (!JS_SetPrivate(context, _jsSelf, [self retain])) _jsSelf = NULL;
506 }
507 }
508
509 return OBJECT_TO_JSVAL(_jsSelf);
510}
static JSObject * sEquipmentInfoPrototype
static JSClass sEquipmentInfoClass

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