Oolite
Loading...
Searching...
No Matches
OOConstToJSString.h File Reference
Include dependency graph for OOConstToJSString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void OOConstToJSStringInit (JSContext *context)
void OOConstToJSStringDestroy (void)
JSString * OOJSStringFromConstantPRIVATE (JSContext *context, NSInteger value, struct ConstTable *table)
NSUInteger OOConstantFromJSStringPRIVATE (JSContext *context, JSString *string, struct ConstTable *table, NSInteger defaultValue)
NSUInteger OOConstantFromJSValuePRIVATE (JSContext *context, jsval value, struct ConstTable *table, NSInteger defaultValue)
OOINLINE JSString * OOJSStringFromEntityStatus (JSContext *context, OOEntityStatus value)
OOINLINE jsval OOJSValueFromEntityStatus (JSContext *context, OOEntityStatus value)
OOINLINE OOEntityStatus OOEntityStatusFromJSString (JSContext *context, JSString *string)
OOINLINE OOEntityStatus OOEntityStatusFromJSValue (JSContext *context, jsval value)
OOINLINE JSString * OOJSStringFromScanClass (JSContext *context, OOScanClass value)
OOINLINE jsval OOJSValueFromScanClass (JSContext *context, OOScanClass value)
OOINLINE OOScanClass OOScanClassFromJSString (JSContext *context, JSString *string)
OOINLINE OOScanClass OOScanClassFromJSValue (JSContext *context, jsval value)
OOINLINE JSString * OOJSStringFromCompassMode (JSContext *context, OOCompassMode value)
OOINLINE jsval OOJSValueFromCompassMode (JSContext *context, OOCompassMode value)
OOINLINE OOCompassMode OOCompassModeFromJSString (JSContext *context, JSString *string)
OOINLINE OOCompassMode OOCompassModeFromJSValue (JSContext *context, jsval value)
OOINLINE JSString * OOJSStringFromGUIScreenID (JSContext *context, OOGUIScreenID value)
OOINLINE jsval OOJSValueFromGUIScreenID (JSContext *context, OOGUIScreenID value)
OOINLINE OOGUIScreenID OOGUIScreenIDFromJSString (JSContext *context, JSString *string)
OOINLINE OOGUIScreenID OOGUIScreenIDFromJSValue (JSContext *context, jsval value)
OOINLINE JSString * OOJSStringFromGalacticHyperspaceBehaviour (JSContext *context, OOGalacticHyperspaceBehaviour value)
OOINLINE jsval OOJSValueFromGalacticHyperspaceBehaviour (JSContext *context, OOGalacticHyperspaceBehaviour value)
OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSString (JSContext *context, JSString *string)
OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSValue (JSContext *context, jsval value)
OOINLINE JSString * OOJSStringFromViewID (JSContext *context, OOViewID value)
OOINLINE jsval OOJSValueFromViewID (JSContext *context, OOViewID value)
OOINLINE OOViewID OOViewIDFromJSString (JSContext *context, JSString *string)
OOINLINE OOViewID OOViewIDFromJSValue (JSContext *context, jsval value)
OOINLINE JSString * OOJSStringFromShipDamageType (JSContext *context, OOShipDamageType value)
OOINLINE jsval OOJSValueFromShipDamageType (JSContext *context, OOShipDamageType value)
OOINLINE JSString * OOJSStringFromLegalStatusReason (JSContext *context, OOLegalStatusReason value)
OOINLINE jsval OOJSValueFromLegalStatusReason (JSContext *context, OOLegalStatusReason value)

Function Documentation

◆ OOCompassModeFromJSString()

OOINLINE OOCompassMode OOCompassModeFromJSString ( JSContext * context,
JSString * string )

Definition at line 119 of file OOConstToJSString.h.

120{
123}
NSUInteger OOConstantFromJSStringPRIVATE(JSContext *context, JSString *string, struct ConstTable *table, NSInteger defaultValue)
ConstTable gOOCompassModeConstTable
OOCompassMode
Definition OOTypes.h:129
@ kOOCompassModeDefault
Definition OOTypes.h:134

References gOOCompassModeConstTable, kOOCompassModeDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.

Here is the call graph for this function:

◆ OOCompassModeFromJSValue()

OOINLINE OOCompassMode OOCompassModeFromJSValue ( JSContext * context,
jsval value )

Definition at line 125 of file OOConstToJSString.h.

126{
129}
NSUInteger OOConstantFromJSValuePRIVATE(JSContext *context, jsval value, struct ConstTable *table, NSInteger defaultValue)

References gOOCompassModeConstTable, kOOCompassModeDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.

Referenced by PlayerShipSetProperty(), and PlayerShipSetProperty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOConstantFromJSStringPRIVATE()

NSUInteger OOConstantFromJSStringPRIVATE ( JSContext * context,
JSString * string,
struct ConstTable * table,
NSInteger defaultValue )

Definition at line 206 of file OOConstToJSString.m.

207{
208 NSCAssert1(sInited, @"%s called before OOConstToJSStringInit().", __PRETTY_FUNCTION__);
209 NSCParameterAssert(context != NULL && JS_IsInRequest(context) && table != NULL);
210
211 // Quick pass: look for pointer-equal string.
212 NSUInteger i, count = table->count;
213 for (i = 0; i < count; i++) {
214 if (table->entries[i].jsString == string) {
215 return table->entries[i].value;
216 }
217 }
218
219 // Slow pass: use string comparison. This is expected to fail.
220 if (string != NULL) {
221 for (i = 0; i < count; i++) {
222 int32 result;
223 if (JS_CompareStrings(context, string, table->entries[i].jsString, &result) && result == 0) {
224 return table->entries[i].value;
225 }
226 }
227 }
228
229 // Fail.
230 return defaultValue;
231}
static BOOL sInited
Definition OOCPUInfo.m:56
#define JS_IsInRequest(context)
unsigned count
TableEntry * entries
NSUInteger count
NSInteger value
JSString * jsString

References ConstTable::count, count, ConstTable::entries, JS_IsInRequest, TableEntry::jsString, sInited, and TableEntry::value.

Referenced by OOCompassModeFromJSString(), OOConstantFromJSValuePRIVATE(), OOEntityStatusFromJSString(), OOGalacticHyperspaceBehaviourFromJSString(), OOGUIScreenIDFromJSString(), OOScanClassFromJSString(), and OOViewIDFromJSString().

Here is the caller graph for this function:

◆ OOConstantFromJSValuePRIVATE()

NSUInteger OOConstantFromJSValuePRIVATE ( JSContext * context,
jsval value,
struct ConstTable * table,
NSInteger defaultValue )

Definition at line 233 of file OOConstToJSString.m.

234{
235 if (EXPECT(JSVAL_IS_STRING(value))) {
236 return OOConstantFromJSStringPRIVATE(context, JSVAL_TO_STRING(value), table, defaultValue);
237 } else {
238 return defaultValue;
239 }
240}
NSUInteger OOConstantFromJSStringPRIVATE(JSContext *context, JSString *string, struct ConstTable *table, NSInteger defaultValue)
#define EXPECT(x)

References EXPECT, and OOConstantFromJSStringPRIVATE().

Referenced by OOCompassModeFromJSValue(), OOCompassModeFromJSValue(), OOEntityStatusFromJSValue(), OOEntityStatusFromJSValue(), OOGalacticHyperspaceBehaviourFromJSValue(), OOGalacticHyperspaceBehaviourFromJSValue(), OOGUIScreenIDFromJSValue(), OOGUIScreenIDFromJSValue(), OOScanClassFromJSValue(), OOScanClassFromJSValue(), OOViewIDFromJSValue(), and OOViewIDFromJSValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOConstToJSStringDestroy()

void OOConstToJSStringDestroy ( void )

Definition at line 149 of file OOConstToJSString.m.

150{
151 NSCAssert(sInited, @"OOConstToJSStringDestroy() called while not inited.");
152 sInited = NO;
153 // jsString pointers are now officially junk.
154}

References sInited.

Referenced by OOJavaScriptEngine(Private)::destroyMainThreadContext.

Here is the caller graph for this function:

◆ OOConstToJSStringInit()

void OOConstToJSStringInit ( JSContext * context)

Definition at line 129 of file OOConstToJSString.m.

130{
131 NSCAssert(!sInited, @"OOConstToJSStringInit() called while already inited.");
132 NSCParameterAssert(context != NULL && JS_IsInRequest(context));
133
134 sUndefinedString = JS_InternString(context, "UNDEFINED");
135
145
146 sInited = YES;
147}
ConstTable gOOViewIDConstTable
ConstTable gOOEntityStatusConstTable
static JSString * sUndefinedString
ConstTable gOOLongRangeChartModeConstTable
ConstTable gOOLegalStatusReasonConstTable
static void InitTable(JSContext *context, ConstTable *table)
ConstTable gOOShipDamageTypeConstTable
ConstTable gOOScanClassConstTable
ConstTable gOOGUIScreenIDConstTable
ConstTable gOOGalacticHyperspaceBehaviourConstTable

References gOOCompassModeConstTable, gOOEntityStatusConstTable, gOOGalacticHyperspaceBehaviourConstTable, gOOGUIScreenIDConstTable, gOOLegalStatusReasonConstTable, gOOLongRangeChartModeConstTable, gOOScanClassConstTable, gOOShipDamageTypeConstTable, gOOViewIDConstTable, InitTable(), JS_IsInRequest, sInited, and sUndefinedString.

Referenced by OOJavaScriptEngine(Private)::createMainThreadContext.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOEntityStatusFromJSString()

OOINLINE OOEntityStatus OOEntityStatusFromJSString ( JSContext * context,
JSString * string )

Definition at line 59 of file OOConstToJSString.h.

60{
63}
@ kOOEntityStatusDefault
Definition Entity.h:326
OOEntityStatus
Definition Entity.h:60

References gOOEntityStatusConstTable, kOOEntityStatusDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.

Here is the call graph for this function:

◆ OOEntityStatusFromJSValue()

OOINLINE OOEntityStatus OOEntityStatusFromJSValue ( JSContext * context,
jsval value )

Definition at line 65 of file OOConstToJSString.h.

References gOOEntityStatusConstTable, kOOEntityStatusDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.

Here is the call graph for this function:

◆ OOGalacticHyperspaceBehaviourFromJSString()

OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSString ( JSContext * context,
JSString * string )

Definition at line 179 of file OOConstToJSString.h.

References gOOGalacticHyperspaceBehaviourConstTable, kOOGalacticHyperspaceBehaviourDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.

Here is the call graph for this function:

◆ OOGalacticHyperspaceBehaviourFromJSValue()

OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSValue ( JSContext * context,
jsval value )

Definition at line 185 of file OOConstToJSString.h.

References gOOGalacticHyperspaceBehaviourConstTable, kOOGalacticHyperspaceBehaviourDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.

Referenced by PlayerShipSetProperty(), and PlayerShipSetProperty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOGUIScreenIDFromJSString()

OOINLINE OOGUIScreenID OOGUIScreenIDFromJSString ( JSContext * context,
JSString * string )

Definition at line 149 of file OOConstToJSString.h.

150{
153}
@ kOOGUIScreenIDDefault
OOGUIScreenID

References gOOGUIScreenIDConstTable, kOOGUIScreenIDDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.

Here is the call graph for this function:

◆ OOGUIScreenIDFromJSValue()

OOINLINE OOGUIScreenID OOGUIScreenIDFromJSValue ( JSContext * context,
jsval value )

Definition at line 155 of file OOConstToJSString.h.

References gOOGUIScreenIDConstTable, kOOGUIScreenIDDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.

Referenced by GlobalClearExtraGuiScreenKeys(), GlobalClearExtraGuiScreenKeys(), GlobalSetExtraGuiScreenKeys(), GlobalSetExtraGuiScreenKeys(), MissionSetProperty(), and MissionSetProperty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSStringFromCompassMode()

OOINLINE JSString * OOJSStringFromCompassMode ( JSContext * context,
OOCompassMode value )

Definition at line 108 of file OOConstToJSString.h.

109{
112}
JSString * OOJSStringFromConstantPRIVATE(JSContext *context, NSInteger value, struct ConstTable *table)

References gOOCompassModeConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().

Referenced by OOJSValueFromCompassMode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSStringFromConstantPRIVATE()

JSString * OOJSStringFromConstantPRIVATE ( JSContext * context,
NSInteger value,
struct ConstTable * table )

Definition at line 182 of file OOConstToJSString.m.

183{
184 NSCAssert1(sInited, @"%s called before OOConstToJSStringInit().", __PRETTY_FUNCTION__);
185 NSCParameterAssert(context != NULL && JS_IsInRequest(context));
186 NSCParameterAssert(table != NULL && table->count > 0);
187
188 // Binary search.
189 NSUInteger min = 0, max = table->count - 1;
190 NSInteger current;
191 do {
192 NSUInteger mid = (min + max) / 2;
193 current = table->entries[mid].value;
194 if (current < value) {
195 min = mid + 1;
196 } else if (current > value) {
197 max = mid - 1;
198 } else {
199 return table->entries[mid].jsString;
200 }
201 } while (min <= max);
202
203 return sUndefinedString;
204}

References ConstTable::count, ConstTable::entries, JS_IsInRequest, TableEntry::jsString, sInited, sUndefinedString, and TableEntry::value.

Referenced by OOJSStringFromCompassMode(), OOJSStringFromEntityStatus(), OOJSStringFromGalacticHyperspaceBehaviour(), OOJSStringFromGUIScreenID(), OOJSStringFromLegalStatusReason(), OOJSStringFromScanClass(), OOJSStringFromShipDamageType(), and OOJSStringFromViewID().

Here is the caller graph for this function:

◆ OOJSStringFromEntityStatus()

OOINLINE JSString * OOJSStringFromEntityStatus ( JSContext * context,
OOEntityStatus value )

Definition at line 48 of file OOConstToJSString.h.

49{
52}

References gOOEntityStatusConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().

Referenced by OOJSValueFromEntityStatus().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSStringFromGalacticHyperspaceBehaviour()

OOINLINE JSString * OOJSStringFromGalacticHyperspaceBehaviour ( JSContext * context,
OOGalacticHyperspaceBehaviour value )

Definition at line 168 of file OOConstToJSString.h.

References gOOGalacticHyperspaceBehaviourConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().

Referenced by OOJSValueFromGalacticHyperspaceBehaviour().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSStringFromGUIScreenID()

OOINLINE JSString * OOJSStringFromGUIScreenID ( JSContext * context,
OOGUIScreenID value )

Definition at line 138 of file OOConstToJSString.h.

139{
142}

References gOOGUIScreenIDConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().

Referenced by OOJSValueFromGUIScreenID().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSStringFromLegalStatusReason()

OOINLINE JSString * OOJSStringFromLegalStatusReason ( JSContext * context,
OOLegalStatusReason value )

Definition at line 237 of file OOConstToJSString.h.

References gOOLegalStatusReasonConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().

Referenced by OOJSValueFromLegalStatusReason().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSStringFromScanClass()

OOINLINE JSString * OOJSStringFromScanClass ( JSContext * context,
OOScanClass value )

Definition at line 78 of file OOConstToJSString.h.

79{
82}

References gOOScanClassConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().

Referenced by OOJSValueFromScanClass().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSStringFromShipDamageType()

OOINLINE JSString * OOJSStringFromShipDamageType ( JSContext * context,
OOShipDamageType value )

Definition at line 226 of file OOConstToJSString.h.

227{
230}

References gOOShipDamageTypeConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().

Referenced by OOJSValueFromShipDamageType().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSStringFromViewID()

OOINLINE JSString * OOJSStringFromViewID ( JSContext * context,
OOViewID value )

Definition at line 198 of file OOConstToJSString.h.

199{
200 extern struct ConstTable gOOViewIDConstTable;
201 return OOJSStringFromConstantPRIVATE(context, value, &gOOViewIDConstTable);
202}

References gOOViewIDConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().

Referenced by OOJSValueFromViewID().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSValueFromCompassMode()

OOINLINE jsval OOJSValueFromCompassMode ( JSContext * context,
OOCompassMode value )

Definition at line 114 of file OOConstToJSString.h.

115{
116 return STRING_TO_JSVAL(OOJSStringFromCompassMode(context, value));
117}
OOINLINE JSString * OOJSStringFromCompassMode(JSContext *context, OOCompassMode value)

References OOINLINE, and OOJSStringFromCompassMode().

Referenced by PlayerEntity(OOPrivate)::noteCompassLostTarget, PlayerShipGetProperty(), and PlayerShipGetProperty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSValueFromEntityStatus()

OOINLINE jsval OOJSValueFromEntityStatus ( JSContext * context,
OOEntityStatus value )

Definition at line 54 of file OOConstToJSString.h.

55{
56 return STRING_TO_JSVAL(OOJSStringFromEntityStatus(context, value));
57}
OOINLINE JSString * OOJSStringFromEntityStatus(JSContext *context, OOEntityStatus value)

References OOINLINE, and OOJSStringFromEntityStatus().

Referenced by EntityGetProperty(), and EntityGetProperty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSValueFromGalacticHyperspaceBehaviour()

OOINLINE jsval OOJSValueFromGalacticHyperspaceBehaviour ( JSContext * context,
OOGalacticHyperspaceBehaviour value )

Definition at line 174 of file OOConstToJSString.h.

175{
176 return STRING_TO_JSVAL(OOJSStringFromGalacticHyperspaceBehaviour(context, value));
177}
OOINLINE JSString * OOJSStringFromGalacticHyperspaceBehaviour(JSContext *context, OOGalacticHyperspaceBehaviour value)

References OOINLINE, and OOJSStringFromGalacticHyperspaceBehaviour().

Referenced by PlayerShipGetProperty(), and PlayerShipGetProperty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSValueFromGUIScreenID()

OOINLINE jsval OOJSValueFromGUIScreenID ( JSContext * context,
OOGUIScreenID value )

Definition at line 144 of file OOConstToJSString.h.

145{
146 return STRING_TO_JSVAL(OOJSStringFromGUIScreenID(context, value));
147}
OOINLINE JSString * OOJSStringFromGUIScreenID(JSContext *context, OOGUIScreenID value)

References OOINLINE, and OOJSStringFromGUIScreenID().

Referenced by GlobalGetProperty(), GlobalGetProperty(), MissionGetProperty(), MissionGetProperty(), PlayerEntity::noteGUIDidChangeFrom:to:refresh:, and PlayerEntity::noteGUIWillChangeTo:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSValueFromLegalStatusReason()

OOINLINE jsval OOJSValueFromLegalStatusReason ( JSContext * context,
OOLegalStatusReason value )

Definition at line 243 of file OOConstToJSString.h.

244{
245 return STRING_TO_JSVAL(OOJSStringFromLegalStatusReason(context, value));
246}
OOINLINE JSString * OOJSStringFromLegalStatusReason(JSContext *context, OOLegalStatusReason value)

References OOINLINE, and OOJSStringFromLegalStatusReason().

Referenced by PlayerEntity::markAsOffender:withReason:, and ShipEntity::markAsOffender:withReason:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSValueFromScanClass()

OOINLINE jsval OOJSValueFromScanClass ( JSContext * context,
OOScanClass value )

Definition at line 84 of file OOConstToJSString.h.

85{
86 return STRING_TO_JSVAL(OOJSStringFromScanClass(context, value));
87}
OOINLINE JSString * OOJSStringFromScanClass(JSContext *context, OOScanClass value)

References OOINLINE, and OOJSStringFromScanClass().

Referenced by EntityGetProperty(), and EntityGetProperty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSValueFromShipDamageType()

OOINLINE jsval OOJSValueFromShipDamageType ( JSContext * context,
OOShipDamageType value )

Definition at line 232 of file OOConstToJSString.h.

233{
234 return STRING_TO_JSVAL(OOJSStringFromShipDamageType(context, value));
235}
OOINLINE JSString * OOJSStringFromShipDamageType(JSContext *context, OOShipDamageType value)

References OOINLINE, and OOJSStringFromShipDamageType().

Referenced by ShipEntity::noteKilledBy:damageType:, and ShipEntity::noteTakingDamage:from:type:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOJSValueFromViewID()

OOINLINE jsval OOJSValueFromViewID ( JSContext * context,
OOViewID value )

Definition at line 204 of file OOConstToJSString.h.

205{
206 return STRING_TO_JSVAL(OOJSStringFromViewID(context, value));
207}
OOINLINE JSString * OOJSStringFromViewID(JSContext *context, OOViewID value)

References OOINLINE, and OOJSStringFromViewID().

Referenced by Universe::enterGUIViewModeWithMouseInteraction:, PlayerShipGetProperty(), PlayerShipGetProperty(), and PlayerEntity(OOControlsPrivate)::switchToThisView:fromView:andProcessWeaponFacing:justNotify:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOScanClassFromJSString()

OOINLINE OOScanClass OOScanClassFromJSString ( JSContext * context,
JSString * string )

Definition at line 89 of file OOConstToJSString.h.

90{
93}
@ kOOScanClassDefault
Definition Entity.h:327
OOScanClass
Definition Entity.h:69

References gOOScanClassConstTable, kOOScanClassDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.

Here is the call graph for this function:

◆ OOScanClassFromJSValue()

OOINLINE OOScanClass OOScanClassFromJSValue ( JSContext * context,
jsval value )

Definition at line 95 of file OOConstToJSString.h.

References gOOScanClassConstTable, kOOScanClassDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.

Referenced by EntitySetProperty(), EntitySetProperty(), SystemCountEntitiesWithScanClass(), SystemCountEntitiesWithScanClass(), SystemEntitiesWithScanClass(), and SystemEntitiesWithScanClass().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OOViewIDFromJSString()

OOINLINE OOViewID OOViewIDFromJSString ( JSContext * context,
JSString * string )

Definition at line 209 of file OOConstToJSString.h.

210{
211 extern struct ConstTable gOOViewIDConstTable;
213}
OOViewID
Definition OOTypes.h:39
@ kOOViewIDDefault
Definition OOTypes.h:42

References gOOViewIDConstTable, kOOViewIDDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.

Here is the call graph for this function:

◆ OOViewIDFromJSValue()

OOINLINE OOViewID OOViewIDFromJSValue ( JSContext * context,
jsval value )

Definition at line 215 of file OOConstToJSString.h.

216{
217 extern struct ConstTable gOOViewIDConstTable;
219}

References gOOViewIDConstTable, kOOViewIDDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.

Here is the call graph for this function: