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

Go to the source code of this file.

Macros

#define OOJS_PROFILE   OOLITE_DEBUG
#define OOJS_PROFILE_ENTER   {
#define OOJS_PROFILE_EXIT_VAL(rval)
#define OOJS_PROFILE_EXIT_VOID
#define OOJS_PROFILE_ENTER_FOR_NATIVE   @try {
#define OOJS_NATIVE_ENTER(cx)
#define OOJS_NATIVE_EXIT
#define OOJS_PROFILE_EXIT   OOJS_PROFILE_EXIT_VAL(0)
#define OOJS_PROFILE_EXIT_JSVAL   OOJS_PROFILE_EXIT_VAL(JSVAL_VOID)
#define OOJS_BEGIN_FULL_NATIVE(context)
#define OOJS_END_FULL_NATIVE
#define OOJS_DECLARE_PROFILE_STACK_FRAME(name)
#define OOJSProfileEnter(frame, function)
#define OOJSProfileExit(frame)

Functions

void OOJSReportWrappedException (JSContext *context, id exception)
void OOJSUnreachable (const char *function, const char *file, unsigned line) NO_RETURN_FUNC

Macro Definition Documentation

◆ OOJS_BEGIN_FULL_NATIVE

#define OOJS_BEGIN_FULL_NATIVE ( context)
Value:
{ \
(void)(context); \
OOJSPauseTimeLimiter(); \
@try {

Definition at line 145 of file OOJSEngineNativeWrappers.h.

145#define OOJS_BEGIN_FULL_NATIVE(context) \
146 { \
147 (void)(context); \
148 OOJSPauseTimeLimiter(); \
149 @try {

Referenced by GetJSSystemInfoForSystem(), GlobalExpandDescription(), GlobalExpandDescription(), GlobalKeyBindingDescription(), GlobalKeyBindingDescription(), GlobalLog(), GlobalLog(), GlobalLog(), ShipAddCargoEntity(), ShipAddCargoEntity(), ShipSetMaterialsInternal(), ShipSetMaterialsInternal(), ShipSpawn(), ShipSpawn(), SoundSourcePlay(), SoundSourcePlay(), SoundSourcePlayOrRepeat(), SoundSourcePlayOrRepeat(), SoundSourceStop(), SoundSourceStop(), SoundStaticLoad(), SoundStaticLoad(), SoundStaticMusicSoundSource(), SoundStaticMusicSoundSource(), SoundStaticPlayMusic(), SoundStaticPlayMusic(), SoundStaticStopMusic(), SoundStaticStopMusic(), StationCanDockShip(), StationCanDockShip(), StationDecreaseAlertLevel(), StationDecreaseAlertLevel(), StationIncreaseAlertLevel(), StationIncreaseAlertLevel(), StationLaunchDefenseShip(), StationLaunchDefenseShip(), StationLaunchEscort(), StationLaunchEscort(), StationLaunchMiner(), StationLaunchMiner(), StationLaunchPatrol(), StationLaunchPatrol(), StationLaunchPirateShip(), StationLaunchPirateShip(), StationLaunchPolice(), StationLaunchPolice(), StationLaunchScavenger(), StationLaunchScavenger(), StationLaunchShipWithRole(), StationLaunchShipWithRole(), StationLaunchShuttle(), StationLaunchShuttle(), SystemAddMoon(), SystemAddMoon(), SystemAddPlanet(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemAddVisualEffect(), SystemCountEntitiesWithScanClass(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemCountShipsWithRole(), SystemEntitiesWithScanClass(), SystemEntitiesWithScanClass(), SystemGetProperty(), SystemGetProperty(), SystemInfoRouteToSystem(), SystemInfoRouteToSystem(), SystemLegacyAddShips(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), SystemLegacySpawnShip(), SystemShipsWithPrimaryRole(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemShipsWithRole(), SystemStaticSystemIDForName(), SystemStaticSystemIDForName(), VectorFromCoordinateSystem(), VectorFromCoordinateSystem(), VectorToCoordinateSystem(), VectorToCoordinateSystem(), VisualEffectSetMaterialsInternal(), and VisualEffectSetMaterialsInternal().

◆ OOJS_DECLARE_PROFILE_STACK_FRAME

#define OOJS_DECLARE_PROFILE_STACK_FRAME ( name)

Definition at line 187 of file OOJSEngineNativeWrappers.h.

◆ OOJS_END_FULL_NATIVE

#define OOJS_END_FULL_NATIVE
Value:
} \
@finally \
{ \
OOJSResumeTimeLimiter(); \
} \
}

Definition at line 151 of file OOJSEngineNativeWrappers.h.

151#define OOJS_END_FULL_NATIVE \
152 } \
153 @finally \
154 { \
155 OOJSResumeTimeLimiter(); \
156 } \
157 }

Referenced by GetJSSystemInfoForSystem(), GlobalExpandDescription(), GlobalExpandDescription(), GlobalKeyBindingDescription(), GlobalKeyBindingDescription(), GlobalLog(), GlobalLog(), GlobalLog(), ShipAddCargoEntity(), ShipAddCargoEntity(), ShipSetMaterialsInternal(), ShipSetMaterialsInternal(), ShipSpawn(), ShipSpawn(), SoundSourcePlay(), SoundSourcePlay(), SoundSourcePlayOrRepeat(), SoundSourcePlayOrRepeat(), SoundSourceStop(), SoundSourceStop(), SoundStaticLoad(), SoundStaticLoad(), SoundStaticMusicSoundSource(), SoundStaticMusicSoundSource(), SoundStaticPlayMusic(), SoundStaticPlayMusic(), SoundStaticStopMusic(), SoundStaticStopMusic(), StationCanDockShip(), StationCanDockShip(), StationDecreaseAlertLevel(), StationDecreaseAlertLevel(), StationIncreaseAlertLevel(), StationIncreaseAlertLevel(), StationLaunchDefenseShip(), StationLaunchDefenseShip(), StationLaunchEscort(), StationLaunchEscort(), StationLaunchMiner(), StationLaunchMiner(), StationLaunchPatrol(), StationLaunchPatrol(), StationLaunchPirateShip(), StationLaunchPirateShip(), StationLaunchPolice(), StationLaunchPolice(), StationLaunchScavenger(), StationLaunchScavenger(), StationLaunchShipWithRole(), StationLaunchShipWithRole(), StationLaunchShuttle(), StationLaunchShuttle(), SystemAddMoon(), SystemAddMoon(), SystemAddPlanet(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemAddVisualEffect(), SystemCountEntitiesWithScanClass(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemCountShipsWithRole(), SystemEntitiesWithScanClass(), SystemEntitiesWithScanClass(), SystemGetProperty(), SystemGetProperty(), SystemInfoRouteToSystem(), SystemInfoRouteToSystem(), SystemLegacyAddShips(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), SystemLegacySpawnShip(), SystemShipsWithPrimaryRole(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemShipsWithRole(), SystemStaticSystemIDForName(), SystemStaticSystemIDForName(), VectorFromCoordinateSystem(), VectorFromCoordinateSystem(), VectorToCoordinateSystem(), VectorToCoordinateSystem(), VisualEffectSetMaterialsInternal(), and VisualEffectSetMaterialsInternal().

◆ OOJS_NATIVE_ENTER

#define OOJS_NATIVE_ENTER ( cx)
Value:
{ \
JSContext* oojsNativeContext = (cx); \
#define OOJS_PROFILE_ENTER_FOR_NATIVE

Definition at line 91 of file OOJSEngineNativeWrappers.h.

91#define OOJS_NATIVE_ENTER(cx) \
92 { \
93 JSContext* oojsNativeContext = (cx); \
94 OOJS_PROFILE_ENTER_FOR_NATIVE

Referenced by ClockAddSeconds(), ClockAddSeconds(), ClockClockStringForTime(), ClockClockStringForTime(), ClockGetProperty(), ClockGetProperty(), DockGetProperty(), DockGetProperty(), DockIsQueued(), DockIsQueued(), DockSetProperty(), DockSetProperty(), EntityGetProperty(), EntityGetProperty(), EntitySetProperty(), EntitySetProperty(), EquipmentInfoGetAllEqipment(), EquipmentInfoGetAllEqipment(), EquipmentInfoGetProperty(), EquipmentInfoGetProperty(), EquipmentInfoSetProperty(), EquipmentInfoSetProperty(), EquipmentInfoStaticInfoForKey(), EquipmentInfoStaticInfoForKey(), ExhaustPlumeGetProperty(), ExhaustPlumeGetProperty(), ExhaustPlumeRemove(), ExhaustPlumeRemove(), ExhaustPlumeSetProperty(), ExhaustPlumeSetProperty(), FlasherGetProperty(), FlasherGetProperty(), FlasherRemove(), FlasherRemove(), FlasherSetProperty(), FlasherSetProperty(), FontMeasureString(), FontMeasureString(), GlobalAddFrameCallback(), GlobalAddFrameCallback(), GlobalAutoAIForRole(), GlobalAutoAIForRole(), GlobalClearExtraGuiScreenKeys(), GlobalClearExtraGuiScreenKeys(), GlobalDisplayNameForCommodity(), GlobalDisplayNameForCommodity(), GlobalExpandDescription(), GlobalExpandDescription(), GlobalExpandMissionText(), GlobalExpandMissionText(), GlobalGetGuiColorSettingForKey(), GlobalGetGuiColorSettingForKey(), GlobalGetProperty(), GlobalGetProperty(), GlobalGetScreenBackgroundForKey(), GlobalGetScreenBackgroundForKey(), GlobalIsValidFrameCallback(), GlobalIsValidFrameCallback(), GlobalKeyBindingDescription(), GlobalKeyBindingDescription(), GlobalLog(), GlobalLog(), GlobalLog(), GlobalPauseGame(), GlobalPauseGame(), GlobalQuitGame(), GlobalRandomInhabitantsDescription(), GlobalRandomInhabitantsDescription(), GlobalRandomName(), GlobalRandomName(), GlobalRemoveFrameCallback(), GlobalRemoveFrameCallback(), GlobalSetExtraGuiScreenKeys(), GlobalSetExtraGuiScreenKeys(), GlobalSetGuiColorSettingForKey(), GlobalSetGuiColorSettingForKey(), GlobalSetScreenBackground(), GlobalSetScreenBackground(), GlobalSetScreenBackgroundForKey(), GlobalSetScreenBackgroundForKey(), GlobalSetScreenOverlay(), GlobalSetScreenOverlay(), JSClockToString(), JSClockToString(), ManifestComment(), ManifestComment(), ManifestGetProperty(), ManifestGetProperty(), ManifestSetComment(), ManifestSetComment(), ManifestSetProperty(), ManifestSetShortComment(), ManifestSetShortComment(), ManifestShortComment(), ManifestShortComment(), MissionAddMessageText(), MissionAddMessageText(), MissionGetProperty(), MissionGetProperty(), MissionMarkSystem(), MissionMarkSystem(), MissionRunScreen(), MissionRunScreen(), MissionRunShipLibrary(), MissionRunShipLibrary(), MissionSetInstructionsInternal(), MissionSetInstructionsInternal(), MissionSetProperty(), MissionSetProperty(), MissionUnmarkSystem(), MissionUnmarkSystem(), MissionVariablesDeleteProperty(), MissionVariablesEnumerate(), MissionVariablesGetProperty(), MissionVariablesGetProperty(), MissionVariablesSetProperty(), OOJSObjectWrapperToString(), OOJSObjectWrapperToString(), OOJSUnconstructableConstruct(), OoliteCompareVersion(), OoliteCompareVersion(), OoliteGetProperty(), OoliteGetProperty(), OoliteSetProperty(), OoliteSetProperty(), PlanetGetProperty(), PlanetGetProperty(), PlanetSetProperty(), PlanetSetProperty(), PlayerAddMessageToArrivalReport(), PlayerAddMessageToArrivalReport(), PlayerAudioMessage(), PlayerAudioMessage(), PlayerCommsMessage(), PlayerCommsMessage(), PlayerConsoleMessage(), PlayerConsoleMessage(), PlayerDecreaseContractReputation(), PlayerDecreaseContractReputation(), PlayerDecreaseParcelReputation(), PlayerDecreaseParcelReputation(), PlayerDecreasePassengerReputation(), PlayerDecreasePassengerReputation(), PlayerEndScenario(), PlayerEndScenario(), PlayerGetProperty(), PlayerGetProperty(), PlayerIncreaseContractReputation(), PlayerIncreaseContractReputation(), PlayerIncreaseParcelReputation(), PlayerIncreaseParcelReputation(), PlayerIncreasePassengerReputation(), PlayerIncreasePassengerReputation(), PlayerReplaceShip(), PlayerReplaceShip(), PlayerSetEscapePodDestination(), PlayerSetEscapePodDestination(), PlayerSetPlayerRole(), PlayerSetPlayerRole(), PlayerSetProperty(), PlayerSetProperty(), PlayerShipAddParcel(), PlayerShipAddParcel(), PlayerShipAddPassenger(), PlayerShipAddPassenger(), PlayerShipAwardContract(), PlayerShipAwardContract(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipBeginGalacticHyperspaceCountdown(), PlayerShipBeginGalacticHyperspaceCountdown(), PlayerShipBeginHyperspaceCountdown(), PlayerShipBeginHyperspaceCountdown(), PlayerShipCancelDockingRequest(), PlayerShipCancelDockingRequest(), PlayerShipCancelHyperspaceCountdown(), PlayerShipCancelHyperspaceCountdown(), PlayerShipDisengageAutopilot(), PlayerShipDisengageAutopilot(), PlayerShipEngageAutopilotToStation(), PlayerShipEngageAutopilotToStation(), PlayerShipGetProperty(), PlayerShipGetProperty(), PlayerShipHideHUDSelector(), PlayerShipHideHUDSelector(), PlayerShipLaunch(), PlayerShipLaunch(), PlayerShipRemoveAllCargo(), PlayerShipRemoveAllCargo(), PlayerShipRemoveContract(), PlayerShipRemoveContract(), PlayerShipRemoveParcel(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipRemovePassenger(), PlayerShipRequestDockingClearance(), PlayerShipRequestDockingClearance(), PlayerShipResetCustomView(), PlayerShipResetCustomView(), PlayerShipResetScannerZoom(), PlayerShipResetScannerZoom(), PlayerShipSetCustomHUDDial(), PlayerShipSetCustomHUDDial(), PlayerShipSetCustomView(), PlayerShipSetCustomView(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionText(), PlayerShipSetMultiFunctionText(), PlayerShipSetPrimedEquipment(), PlayerShipSetPrimedEquipment(), PlayerShipSetProperty(), PlayerShipSetProperty(), PlayerShipShowHUDSelector(), PlayerShipShowHUDSelector(), PlayerShipTakeInternalDamage(), PlayerShipTakeInternalDamage(), PlayerShipUseSpecialCargo(), PlayerShipUseSpecialCargo(), PlayerStopAudioMessage(), PlayerStopAudioMessage(), QuaternionToSource(), QuaternionToSource(), QuaternionToString(), QuaternionToString(), ShipAbandonShip(), ShipAbandonShip(), ShipAddCargoEntity(), ShipAddCargoEntity(), ShipAwardEquipment(), ShipAwardEquipment(), ShipCanAwardEquipment(), ShipCanAwardEquipment(), ShipCommsMessage(), ShipCommsMessage(), ShipDealEnergyDamage(), ShipDealEnergyDamage(), ShipDeployEscorts(), ShipDeployEscorts(), ShipDockEscorts(), ShipDockEscorts(), ShipDumpCargo(), ShipDumpCargo(), ShipEjectItem(), ShipEjectItem(), ShipEjectSpecificItem(), ShipEjectSpecificItem(), ShipEquipmentStatus(), ShipEquipmentStatus(), ShipExitAI(), ShipExitAI(), ShipExitSystem(), ShipExitSystem(), ShipExplode(), ShipExplode(), ShipFindNearestStation(), ShipFindNearestStation(), ShipFireECM(), ShipFireECM(), ShipFireMissile(), ShipFireMissile(), ShipGetProperty(), ShipGetProperty(), ShipGroupAddShip(), ShipGroupAddShip(), ShipGroupConstruct(), ShipGroupConstruct(), ShipGroupContainsShip(), ShipGroupContainsShip(), ShipGroupGetProperty(), ShipGroupGetProperty(), ShipGroupRemoveShip(), ShipGroupRemoveShip(), ShipGroupSetProperty(), ShipGroupSetProperty(), ShipHasEquipmentProviding(), ShipHasEquipmentProviding(), ShipHasRole(), ShipHasRole(), ShipReactToAIMessage(), ShipReactToAIMessage(), ShipRemove(), ShipRemove(), ShipRemoveEquipment(), ShipRemoveEquipment(), ShipRestoreSubEntities(), ShipRestoreSubEntities(), ShipRunLegacyScriptActions(), ShipRunLegacyScriptActions(), ShipSelectNewMissile(), ShipSelectNewMissile(), ShipSendAIMessage(), ShipSendAIMessage(), ShipSetAI(), ShipSetAI(), ShipSetBounty(), ShipSetBounty(), ShipSetCargo(), ShipSetCargo(), ShipSetCargoType(), ShipSetCargoType(), ShipSetCrew(), ShipSetCrew(), ShipSetEquipmentStatus(), ShipSetEquipmentStatus(), ShipSetMaterials(), ShipSetMaterials(), ShipSetProperty(), ShipSetProperty(), ShipSetScript(), ShipSetScript(), ShipSetShaders(), ShipSetShaders(), ShipSpawn(), ShipSpawn(), ShipStaticKeys(), ShipStaticKeys(), ShipStaticKeysForRole(), ShipStaticKeysForRole(), ShipStaticRoleIsInCategory(), ShipStaticRoleIsInCategory(), ShipStaticRoles(), ShipStaticRoles(), ShipStaticSetShipDataForKey(), ShipStaticSetShipDataForKey(), ShipStaticShipDataForKey(), ShipStaticShipDataForKey(), ShipSwitchAI(), ShipSwitchAI(), SoundGetProperty(), SoundGetProperty(), SoundSourceConstruct(), SoundSourceConstruct(), SoundSourceGetProperty(), SoundSourceGetProperty(), SoundSourcePlay(), SoundSourcePlay(), SoundSourcePlayOrRepeat(), SoundSourcePlayOrRepeat(), SoundSourceSetProperty(), SoundSourceSetProperty(), SoundSourceStop(), SoundSourceStop(), SoundStaticLoad(), SoundStaticLoad(), SoundStaticMusicSoundSource(), SoundStaticMusicSoundSource(), SoundStaticPlayMusic(), SoundStaticPlayMusic(), SoundStaticStopMusic(), SoundStaticStopMusic(), StationAbortAllDockings(), StationAbortAllDockings(), StationAbortDockingForShip(), StationAbortDockingForShip(), StationAddShipToShipyard(), StationAddShipToShipyard(), StationCanDockShip(), StationCanDockShip(), StationDecreaseAlertLevel(), StationDecreaseAlertLevel(), StationDockPlayer(), StationDockPlayer(), StationGetProperty(), StationGetProperty(), StationIncreaseAlertLevel(), StationIncreaseAlertLevel(), StationLaunchDefenseShip(), StationLaunchDefenseShip(), StationLaunchEscort(), StationLaunchEscort(), StationLaunchMiner(), StationLaunchMiner(), StationLaunchPatrol(), StationLaunchPatrol(), StationLaunchPirateShip(), StationLaunchPirateShip(), StationLaunchPolice(), StationLaunchPolice(), StationLaunchScavenger(), StationLaunchScavenger(), StationLaunchShipWithRole(), StationLaunchShipWithRole(), StationLaunchShuttle(), StationLaunchShuttle(), StationRemoveShipFromShipyard(), StationRemoveShipFromShipyard(), StationSetInterface(), StationSetInterface(), StationSetMarketPrice(), StationSetMarketPrice(), StationSetMarketQuantity(), StationSetMarketQuantity(), StationSetProperty(), StationSetProperty(), SunCancelNova(), SunCancelNova(), SunGetProperty(), SunGetProperty(), SunGoNova(), SunGoNova(), SystemAddMoon(), SystemAddMoon(), SystemAddPlanet(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemAddVisualEffect(), SystemCountEntitiesWithScanClass(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemCountShipsWithRole(), SystemEntitiesWithScanClass(), SystemEntitiesWithScanClass(), SystemFilteredEntities(), SystemFilteredEntities(), SystemGetProperty(), SystemGetProperty(), SystemInfoDistanceToSystem(), SystemInfoDistanceToSystem(), SystemInfoEnumerate(), SystemInfoGetProperty(), SystemInfoGetProperty(), SystemInfoRouteToSystem(), SystemInfoRouteToSystem(), SystemInfoSamplePrice(), SystemInfoSamplePrice(), SystemInfoSetProperty(), SystemInfoSetPropertyMethod(), SystemInfoSetPropertyMethod(), SystemInfoStaticFilteredSystems(), SystemInfoStaticFilteredSystems(), SystemInfoStaticSetInterstellarProperty(), SystemInfoStaticSetInterstellarProperty(), SystemLegacyAddShips(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), SystemLegacySpawnShip(), SystemLocationFromCode(), SystemLocationFromCode(), SystemSendAllShipsAway(), SystemSendAllShipsAway(), SystemSetPopulator(), SystemSetPopulator(), SystemSetProperty(), SystemSetProperty(), SystemSetWaypoint(), SystemSetWaypoint(), SystemShipsWithPrimaryRole(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemShipsWithRole(), SystemStaticInfoForSystem(), SystemStaticInfoForSystem(), SystemStaticSystemIDForName(), SystemStaticSystemIDForName(), SystemStaticSystemNameForID(), SystemStaticSystemNameForID(), SystemToString(), SystemToString(), TimerConstruct(), TimerConstruct(), TimerGetProperty(), TimerGetProperty(), TimerSetProperty(), TimerSetProperty(), TimerStart(), TimerStart(), TimerStop(), TimerStop(), VectorFromCoordinateSystem(), VectorFromCoordinateSystem(), VectorToCoordinateSystem(), VectorToCoordinateSystem(), VectorToSource(), VectorToSource(), VectorToString(), VectorToString(), VisualEffectGetProperty(), VisualEffectGetProperty(), VisualEffectRemove(), VisualEffectRemove(), VisualEffectRestoreSubEntities(), VisualEffectRestoreSubEntities(), VisualEffectScale(), VisualEffectScale(), VisualEffectSetMaterials(), VisualEffectSetMaterials(), VisualEffectSetProperty(), VisualEffectSetProperty(), VisualEffectSetShaders(), VisualEffectSetShaders(), WaypointGetProperty(), WaypointGetProperty(), WaypointSetProperty(), WaypointSetProperty(), WorldScriptsEnumerate(), WorldScriptsGetProperty(), WormholeGetProperty(), WormholeGetProperty(), and WormholeSetProperty().

◆ OOJS_NATIVE_EXIT

#define OOJS_NATIVE_EXIT
Value:
} \
@catch (id exception) \
{ \
OOJSReportWrappedException(oojsNativeContext, exception); \
return NO; \
OOJS_PROFILE_EXIT_VAL(NO) \
}

Definition at line 96 of file OOJSEngineNativeWrappers.h.

96#define OOJS_NATIVE_EXIT \
97 } \
98 @catch (id exception) \
99 { \
100 OOJSReportWrappedException(oojsNativeContext, exception); \
101 return NO; \
102 OOJS_PROFILE_EXIT_VAL(NO) \
103 }

Referenced by ClockAddSeconds(), ClockAddSeconds(), ClockClockStringForTime(), ClockClockStringForTime(), ClockGetProperty(), ClockGetProperty(), DockGetProperty(), DockGetProperty(), DockIsQueued(), DockIsQueued(), DockSetProperty(), DockSetProperty(), EntityGetProperty(), EntityGetProperty(), EntitySetProperty(), EntitySetProperty(), EquipmentInfoGetAllEqipment(), EquipmentInfoGetAllEqipment(), EquipmentInfoGetProperty(), EquipmentInfoGetProperty(), EquipmentInfoSetProperty(), EquipmentInfoSetProperty(), EquipmentInfoStaticInfoForKey(), EquipmentInfoStaticInfoForKey(), ExhaustPlumeGetProperty(), ExhaustPlumeGetProperty(), ExhaustPlumeRemove(), ExhaustPlumeRemove(), ExhaustPlumeSetProperty(), ExhaustPlumeSetProperty(), FlasherGetProperty(), FlasherGetProperty(), FlasherRemove(), FlasherRemove(), FlasherSetProperty(), FlasherSetProperty(), FontMeasureString(), FontMeasureString(), GlobalAddFrameCallback(), GlobalAddFrameCallback(), GlobalAutoAIForRole(), GlobalAutoAIForRole(), GlobalClearExtraGuiScreenKeys(), GlobalClearExtraGuiScreenKeys(), GlobalDisplayNameForCommodity(), GlobalDisplayNameForCommodity(), GlobalExpandDescription(), GlobalExpandDescription(), GlobalExpandMissionText(), GlobalExpandMissionText(), GlobalGetGuiColorSettingForKey(), GlobalGetGuiColorSettingForKey(), GlobalGetProperty(), GlobalGetProperty(), GlobalGetScreenBackgroundForKey(), GlobalGetScreenBackgroundForKey(), GlobalIsValidFrameCallback(), GlobalIsValidFrameCallback(), GlobalKeyBindingDescription(), GlobalKeyBindingDescription(), GlobalLog(), GlobalLog(), GlobalLog(), GlobalPauseGame(), GlobalPauseGame(), GlobalQuitGame(), GlobalRandomInhabitantsDescription(), GlobalRandomInhabitantsDescription(), GlobalRandomName(), GlobalRandomName(), GlobalRemoveFrameCallback(), GlobalRemoveFrameCallback(), GlobalSetExtraGuiScreenKeys(), GlobalSetExtraGuiScreenKeys(), GlobalSetGuiColorSettingForKey(), GlobalSetGuiColorSettingForKey(), GlobalSetScreenBackground(), GlobalSetScreenBackground(), GlobalSetScreenBackgroundForKey(), GlobalSetScreenBackgroundForKey(), GlobalSetScreenOverlay(), GlobalSetScreenOverlay(), JSClockToString(), JSClockToString(), ManifestComment(), ManifestComment(), ManifestGetProperty(), ManifestGetProperty(), ManifestSetComment(), ManifestSetComment(), ManifestSetProperty(), ManifestSetShortComment(), ManifestSetShortComment(), ManifestShortComment(), ManifestShortComment(), MissionAddMessageText(), MissionAddMessageText(), MissionGetProperty(), MissionGetProperty(), MissionMarkSystem(), MissionMarkSystem(), MissionRunScreen(), MissionRunScreen(), MissionRunShipLibrary(), MissionRunShipLibrary(), MissionSetInstructionsInternal(), MissionSetInstructionsInternal(), MissionSetProperty(), MissionSetProperty(), MissionUnmarkSystem(), MissionUnmarkSystem(), MissionVariablesDeleteProperty(), MissionVariablesEnumerate(), MissionVariablesGetProperty(), MissionVariablesGetProperty(), MissionVariablesSetProperty(), OOJSObjectWrapperToString(), OOJSObjectWrapperToString(), OOJSUnconstructableConstruct(), OoliteCompareVersion(), OoliteCompareVersion(), OoliteGetProperty(), OoliteGetProperty(), OoliteSetProperty(), OoliteSetProperty(), PlanetGetProperty(), PlanetGetProperty(), PlanetSetProperty(), PlanetSetProperty(), PlayerAddMessageToArrivalReport(), PlayerAddMessageToArrivalReport(), PlayerAudioMessage(), PlayerAudioMessage(), PlayerCommsMessage(), PlayerCommsMessage(), PlayerConsoleMessage(), PlayerConsoleMessage(), PlayerDecreaseContractReputation(), PlayerDecreaseContractReputation(), PlayerDecreaseParcelReputation(), PlayerDecreaseParcelReputation(), PlayerDecreasePassengerReputation(), PlayerDecreasePassengerReputation(), PlayerEndScenario(), PlayerEndScenario(), PlayerGetProperty(), PlayerGetProperty(), PlayerIncreaseContractReputation(), PlayerIncreaseContractReputation(), PlayerIncreaseParcelReputation(), PlayerIncreaseParcelReputation(), PlayerIncreasePassengerReputation(), PlayerIncreasePassengerReputation(), PlayerReplaceShip(), PlayerReplaceShip(), PlayerSetEscapePodDestination(), PlayerSetEscapePodDestination(), PlayerSetPlayerRole(), PlayerSetPlayerRole(), PlayerSetProperty(), PlayerSetProperty(), PlayerShipAddParcel(), PlayerShipAddParcel(), PlayerShipAddPassenger(), PlayerShipAddPassenger(), PlayerShipAwardContract(), PlayerShipAwardContract(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipBeginGalacticHyperspaceCountdown(), PlayerShipBeginGalacticHyperspaceCountdown(), PlayerShipBeginHyperspaceCountdown(), PlayerShipBeginHyperspaceCountdown(), PlayerShipCancelDockingRequest(), PlayerShipCancelDockingRequest(), PlayerShipCancelHyperspaceCountdown(), PlayerShipCancelHyperspaceCountdown(), PlayerShipDisengageAutopilot(), PlayerShipDisengageAutopilot(), PlayerShipEngageAutopilotToStation(), PlayerShipEngageAutopilotToStation(), PlayerShipGetProperty(), PlayerShipGetProperty(), PlayerShipHideHUDSelector(), PlayerShipHideHUDSelector(), PlayerShipLaunch(), PlayerShipLaunch(), PlayerShipRemoveAllCargo(), PlayerShipRemoveAllCargo(), PlayerShipRemoveContract(), PlayerShipRemoveContract(), PlayerShipRemoveParcel(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipRemovePassenger(), PlayerShipRequestDockingClearance(), PlayerShipRequestDockingClearance(), PlayerShipResetCustomView(), PlayerShipResetCustomView(), PlayerShipResetScannerZoom(), PlayerShipResetScannerZoom(), PlayerShipSetCustomHUDDial(), PlayerShipSetCustomHUDDial(), PlayerShipSetCustomView(), PlayerShipSetCustomView(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionText(), PlayerShipSetMultiFunctionText(), PlayerShipSetPrimedEquipment(), PlayerShipSetPrimedEquipment(), PlayerShipSetProperty(), PlayerShipSetProperty(), PlayerShipShowHUDSelector(), PlayerShipShowHUDSelector(), PlayerShipTakeInternalDamage(), PlayerShipTakeInternalDamage(), PlayerShipUseSpecialCargo(), PlayerShipUseSpecialCargo(), PlayerStopAudioMessage(), PlayerStopAudioMessage(), QuaternionToSource(), QuaternionToSource(), QuaternionToString(), QuaternionToString(), ShipAbandonShip(), ShipAbandonShip(), ShipAddCargoEntity(), ShipAddCargoEntity(), ShipAwardEquipment(), ShipAwardEquipment(), ShipCanAwardEquipment(), ShipCanAwardEquipment(), ShipCommsMessage(), ShipCommsMessage(), ShipDealEnergyDamage(), ShipDealEnergyDamage(), ShipDeployEscorts(), ShipDeployEscorts(), ShipDockEscorts(), ShipDockEscorts(), ShipDumpCargo(), ShipDumpCargo(), ShipEjectItem(), ShipEjectItem(), ShipEjectSpecificItem(), ShipEjectSpecificItem(), ShipEquipmentStatus(), ShipEquipmentStatus(), ShipExitAI(), ShipExitAI(), ShipExitSystem(), ShipExitSystem(), ShipExplode(), ShipExplode(), ShipFindNearestStation(), ShipFindNearestStation(), ShipFireECM(), ShipFireECM(), ShipFireMissile(), ShipFireMissile(), ShipGetProperty(), ShipGetProperty(), ShipGroupAddShip(), ShipGroupAddShip(), ShipGroupConstruct(), ShipGroupConstruct(), ShipGroupContainsShip(), ShipGroupContainsShip(), ShipGroupGetProperty(), ShipGroupGetProperty(), ShipGroupRemoveShip(), ShipGroupRemoveShip(), ShipGroupSetProperty(), ShipGroupSetProperty(), ShipHasEquipmentProviding(), ShipHasEquipmentProviding(), ShipHasRole(), ShipHasRole(), ShipReactToAIMessage(), ShipReactToAIMessage(), ShipRemove(), ShipRemove(), ShipRemoveEquipment(), ShipRemoveEquipment(), ShipRestoreSubEntities(), ShipRestoreSubEntities(), ShipRunLegacyScriptActions(), ShipRunLegacyScriptActions(), ShipSelectNewMissile(), ShipSelectNewMissile(), ShipSendAIMessage(), ShipSendAIMessage(), ShipSetAI(), ShipSetAI(), ShipSetBounty(), ShipSetBounty(), ShipSetCargo(), ShipSetCargo(), ShipSetCargoType(), ShipSetCargoType(), ShipSetCrew(), ShipSetCrew(), ShipSetEquipmentStatus(), ShipSetEquipmentStatus(), ShipSetMaterials(), ShipSetMaterials(), ShipSetProperty(), ShipSetProperty(), ShipSetScript(), ShipSetScript(), ShipSetShaders(), ShipSetShaders(), ShipSpawn(), ShipSpawn(), ShipStaticKeys(), ShipStaticKeys(), ShipStaticKeysForRole(), ShipStaticKeysForRole(), ShipStaticRoleIsInCategory(), ShipStaticRoleIsInCategory(), ShipStaticRoles(), ShipStaticRoles(), ShipStaticSetShipDataForKey(), ShipStaticSetShipDataForKey(), ShipStaticShipDataForKey(), ShipStaticShipDataForKey(), ShipSwitchAI(), ShipSwitchAI(), SoundGetProperty(), SoundGetProperty(), SoundSourceConstruct(), SoundSourceConstruct(), SoundSourceGetProperty(), SoundSourceGetProperty(), SoundSourcePlay(), SoundSourcePlay(), SoundSourcePlayOrRepeat(), SoundSourcePlayOrRepeat(), SoundSourceSetProperty(), SoundSourceSetProperty(), SoundSourceStop(), SoundSourceStop(), SoundStaticLoad(), SoundStaticLoad(), SoundStaticMusicSoundSource(), SoundStaticMusicSoundSource(), SoundStaticPlayMusic(), SoundStaticPlayMusic(), SoundStaticStopMusic(), SoundStaticStopMusic(), StationAbortAllDockings(), StationAbortAllDockings(), StationAbortDockingForShip(), StationAbortDockingForShip(), StationAddShipToShipyard(), StationAddShipToShipyard(), StationCanDockShip(), StationCanDockShip(), StationDecreaseAlertLevel(), StationDecreaseAlertLevel(), StationDockPlayer(), StationDockPlayer(), StationGetProperty(), StationGetProperty(), StationIncreaseAlertLevel(), StationIncreaseAlertLevel(), StationLaunchDefenseShip(), StationLaunchDefenseShip(), StationLaunchEscort(), StationLaunchEscort(), StationLaunchMiner(), StationLaunchMiner(), StationLaunchPatrol(), StationLaunchPatrol(), StationLaunchPirateShip(), StationLaunchPirateShip(), StationLaunchPolice(), StationLaunchPolice(), StationLaunchScavenger(), StationLaunchScavenger(), StationLaunchShipWithRole(), StationLaunchShipWithRole(), StationLaunchShuttle(), StationLaunchShuttle(), StationRemoveShipFromShipyard(), StationRemoveShipFromShipyard(), StationSetInterface(), StationSetInterface(), StationSetMarketPrice(), StationSetMarketPrice(), StationSetMarketQuantity(), StationSetMarketQuantity(), StationSetProperty(), StationSetProperty(), SunCancelNova(), SunCancelNova(), SunGetProperty(), SunGetProperty(), SunGoNova(), SunGoNova(), SystemAddMoon(), SystemAddMoon(), SystemAddPlanet(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemAddVisualEffect(), SystemCountEntitiesWithScanClass(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemCountShipsWithRole(), SystemEntitiesWithScanClass(), SystemEntitiesWithScanClass(), SystemFilteredEntities(), SystemFilteredEntities(), SystemGetProperty(), SystemGetProperty(), SystemInfoDistanceToSystem(), SystemInfoDistanceToSystem(), SystemInfoEnumerate(), SystemInfoGetProperty(), SystemInfoGetProperty(), SystemInfoRouteToSystem(), SystemInfoRouteToSystem(), SystemInfoSamplePrice(), SystemInfoSamplePrice(), SystemInfoSetProperty(), SystemInfoSetPropertyMethod(), SystemInfoSetPropertyMethod(), SystemInfoStaticFilteredSystems(), SystemInfoStaticFilteredSystems(), SystemInfoStaticSetInterstellarProperty(), SystemInfoStaticSetInterstellarProperty(), SystemLegacyAddShips(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), SystemLegacySpawnShip(), SystemLocationFromCode(), SystemLocationFromCode(), SystemSendAllShipsAway(), SystemSendAllShipsAway(), SystemSetPopulator(), SystemSetPopulator(), SystemSetProperty(), SystemSetProperty(), SystemSetWaypoint(), SystemSetWaypoint(), SystemShipsWithPrimaryRole(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemShipsWithRole(), SystemStaticInfoForSystem(), SystemStaticInfoForSystem(), SystemStaticSystemIDForName(), SystemStaticSystemIDForName(), SystemStaticSystemNameForID(), SystemStaticSystemNameForID(), SystemToString(), SystemToString(), TimerConstruct(), TimerConstruct(), TimerGetProperty(), TimerGetProperty(), TimerSetProperty(), TimerSetProperty(), TimerStart(), TimerStart(), TimerStop(), TimerStop(), VectorFromCoordinateSystem(), VectorFromCoordinateSystem(), VectorToCoordinateSystem(), VectorToCoordinateSystem(), VectorToSource(), VectorToSource(), VectorToString(), VectorToString(), VisualEffectGetProperty(), VisualEffectGetProperty(), VisualEffectRemove(), VisualEffectRemove(), VisualEffectRestoreSubEntities(), VisualEffectRestoreSubEntities(), VisualEffectScale(), VisualEffectScale(), VisualEffectSetMaterials(), VisualEffectSetMaterials(), VisualEffectSetProperty(), VisualEffectSetProperty(), VisualEffectSetShaders(), VisualEffectSetShaders(), WaypointGetProperty(), WaypointGetProperty(), WaypointSetProperty(), WaypointSetProperty(), WorldScriptsEnumerate(), WorldScriptsGetProperty(), WormholeGetProperty(), WormholeGetProperty(), and WormholeSetProperty().

◆ OOJS_PROFILE

#define OOJS_PROFILE   OOLITE_DEBUG

Definition at line 49 of file OOJSEngineNativeWrappers.h.

◆ OOJS_PROFILE_ENTER

#define OOJS_PROFILE_ENTER   {

Definition at line 79 of file OOJSEngineNativeWrappers.h.

Referenced by Universe::addShipAt:withRole:withinRadius:, Universe::addShipsAt:withRole:quantity:withinRadius:asGroup:, Universe::addVisualEffectAt:withKey:, OOMesh(Private)::calculateBoundingVolumes, OOMesh(Private)::calculateVertexNormalsAndTangentsWithFaceRefs:, OOMesh(Private)::calculateVertexTangentsWithFaceRefs:, OOMesh(Private)::checkNormalsAndAdjustWinding, CompareEntitiesByDistance(), Universe::currentSystemData, DescribeValue(), DescribeValue(), EntityFromArgumentList(), EntityFromArgumentList(), Universe::findEntitiesMatchingPredicate:parameter:inRange:ofEntity:, FindJSVisibleEntities(), FindShips(), OOMesh(Private)::generateFaceTangents, Universe::generateSystemData:useCache:, GetJSSystemInfoForSystem(), OOMesh(Private)::getNormal:andTangent:forVertex:inSmoothGroup:, GetRelativeToAndRange(), GetRelativeToAndRange(), HPVectorToJSValue(), HPVectorToJSValue(), DockEntity::initWithKey:definition:, OOVisualEffectEntity::initWithKey:definition:, ShipEntity::initWithKey:definition:, StationEntity::initWithKey:definition:, OOMesh(Private)::initWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:scaleFactor:cacheWriteable:, JSArrayFromNSArray(), JSDockGetDockEntity(), JSDockGetDockEntity(), JSDockGetShipEntity(), JSDockGetShipEntity(), JSEntityIsJavaScriptSearchablePredicate(), JSEntityIsJavaScriptVisiblePredicate(), JSExhaustPlumeGetExhaustPlumeEntity(), JSExhaustPlumeGetExhaustPlumeEntity(), JSFlasherGetFlasherEntity(), JSFlasherGetFlasherEntity(), JSFunctionPredicate(), JSNewNSArrayValue(), JSNewNSDictionaryValue(), JSObjectFromNSDictionary(), JSObjectGetQuaternion(), JSObjectGetQuaternion(), JSObjectGetVector(), JSObjectGetVector(), JSQuaternionSetQuaternion(), JSQuaternionSetQuaternion(), JSQuaternionWithQuaternion(), JSQuaternionWithQuaternion(), JSStationGetShipEntity(), JSStationGetShipEntity(), JSStationGetStationEntity(), JSStationGetStationEntity(), JSValueToEquipmentKeyRelaxed(), JSValueToEquipmentKeyRelaxed(), JSValueToEquipmentType(), JSValueToEquipmentType(), JSVectorSetHPVector(), JSVectorSetHPVector(), JSVectorWithHPVector(), JSVectorWithHPVector(), JSVectorWithVector(), JSVectorWithVector(), JSVisualEffectGetVisualEffectEntity(), JSVisualEffectGetVisualEffectEntity(), JSWaypointGetWaypointEntity(), JSWaypointGetWaypointEntity(), JSWormholeGetWormholeEntity(), JSWormholeGetWormholeEntity(), OOMesh(Private)::loadData:scaleFactor:, ManifestDeleteProperty(), ManifestGetOwnProperty(), ManifestSetPropertyExotic(), MissionVariablesDeleteProperty(), MissionVariablesGetOwnProperty(), MissionVariablesGetOwnPropertyNames(), MissionVariablesSetProperty(), OOMesh(Private)::modelData, Universe::newDockWithName:andScaleFactor:, Universe::newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:, Universe::newShipWithRole:, Universe::newVisualEffectWithName:, NSObject(OOJavaScriptConversion)::oo_jsDescriptionWithClassName:, NSNumber(OOJavaScriptConversion)::oo_jsValueInContext:, OOJSArgumentListGetNumberNoError(), OOJSArgumentListGetNumberNoError(), OOJSDictionaryFromJSObject(), OOJSDictionaryFromJSObject(), OOJSDictionaryFromJSValue(), OOJSDictionaryFromJSValue(), OOJSDictionaryFromStringTable(), OOJSDictionaryFromStringTable(), OOJSNativeObjectFromJSObject(), OOJSNativeObjectFromJSObject(), OOJSNativeObjectFromJSValue(), OOJSNativeObjectFromJSValue(), OOJSObjectGetterImplPRIVATE(), OOJSObjectWrapperFinalize(), OOJSObjectWrapperFinalize(), OOStringFromJSString(), OOStringFromJSValue(), OOStringFromJSValue(), OOStringFromJSValueEvenIfNull(), OOStringFromJSValueEvenIfNull(), QuaternionConjugate(), QuaternionConjugate(), QuaternionConstruct(), QuaternionConstruct(), QuaternionDot(), QuaternionDot(), QuaternionFinalize(), QuaternionFromArgumentListNoErrorInternal(), QuaternionFromArgumentListNoErrorInternal(), QuaternionGetProperty(), QuaternionGetProperty(), QuaternionMultiply(), QuaternionMultiply(), QuaternionNormalize(), QuaternionNormalize(), QuaternionRotate(), QuaternionRotate(), QuaternionRotateX(), QuaternionRotateX(), QuaternionRotateY(), QuaternionRotateY(), QuaternionRotateZ(), QuaternionRotateZ(), QuaternionSetProperty(), QuaternionSetProperty(), QuaternionStaticRandom(), QuaternionStaticRandom(), QuaternionToArray(), QuaternionToArray(), QuaternionToJSValue(), QuaternionToJSValue(), QuaternionVectorForward(), QuaternionVectorForward(), QuaternionVectorRight(), QuaternionVectorRight(), QuaternionVectorUp(), QuaternionVectorUp(), Universe::randomShipKeyForRoleRespectingConditions:, RemoveOrExplodeShip(), RemoveOrExplodeShip(), OOMesh(Private)::setModelFromModelData:name:, ShipEntity::setUpFromDictionary:, ShipEntity(Private)::setUpOneSubentity:, DockEntity::setUpShipFromDictionary:, ShipEntity::setUpShipFromDictionary:, StationEntity::setUpShipFromDictionary:, ShipEntity::setUpSubEntities, OOMesh(Private)::setUpVertexArrays, OOVisualEffectEntity::setUpVisualEffectFromDictionary:, ShipAddCollisionException(), ShipAddCollisionException(), ShipAddDefenseTarget(), ShipAddDefenseTarget(), ShipAdjustCargo(), ShipAdjustCargo(), ShipBecomeCascadeExplosion(), ShipBecomeCascadeExplosion(), ShipBroadcastCascadeImminent(), ShipBroadcastCascadeImminent(), ShipBroadcastDistressMessage(), ShipBroadcastDistressMessage(), ShipCheckCourseToDestination(), ShipCheckCourseToDestination(), ShipCheckScanner(), ShipCheckScanner(), Universe::shipClassForShipDictionary:, ShipClearDefenseTargets(), ShipClearDefenseTargets(), ShipDamageAssessment(), ShipDamageAssessment(), ShipEnterWormhole(), ShipEnterWormhole(), ShipGetMaterials(), ShipGetMaterials(), ShipGetSafeCourseToDestination(), ShipGetSafeCourseToDestination(), ShipGetShaders(), ShipGetShaders(), ShipMarkTargetForFines(), ShipMarkTargetForFines(), ShipNotifyGroupOfWormhole(), ShipNotifyGroupOfWormhole(), ShipOfferToEscort(), ShipOfferToEscort(), ShipPatrolReportIn(), ShipPatrolReportIn(), ShipPerformAttack(), ShipPerformAttack(), ShipPerformCollect(), ShipPerformCollect(), ShipPerformEscort(), ShipPerformEscort(), ShipPerformFaceDestination(), ShipPerformFaceDestination(), ShipPerformFlee(), ShipPerformFlee(), ShipPerformFlyToRangeFromDestination(), ShipPerformFlyToRangeFromDestination(), ShipPerformHold(), ShipPerformHold(), ShipPerformIdle(), ShipPerformIdle(), ShipPerformIntercept(), ShipPerformIntercept(), ShipPerformLandOnPlanet(), ShipPerformLandOnPlanet(), ShipPerformMining(), ShipPerformMining(), ShipPerformScriptedAI(), ShipPerformScriptedAI(), ShipPerformScriptedAttackAI(), ShipPerformScriptedAttackAI(), ShipPerformStop(), ShipPerformStop(), ShipPerformTumble(), ShipPerformTumble(), ShipRecallDockingInstructions(), ShipRecallDockingInstructions(), ShipRemoveCollisionException(), ShipRemoveCollisionException(), ShipRemoveDefenseTarget(), ShipRemoveDefenseTarget(), ShipRequestDockingInstructions(), ShipRequestDockingInstructions(), ShipRequestHelpFromGroup(), ShipRequestHelpFromGroup(), ShipSetMaterialsInternal(), ShipSetMaterialsInternal(), ShipThreatAssessment(), ShipThreatAssessment(), ShipThrowSpark(), ShipThrowSpark(), ShipUpdateEscortFormation(), ShipUpdateEscortFormation(), SoundFromJSValue(), SoundFromJSValue(), SpecialJSWarning(), SpecialJSWarning(), SystemInfoDeleteProperty(), SystemInfoExoticDeleteProperty(), SystemInfoExoticGetOwnProperty(), SystemInfoExoticGetOwnPropertyNames(), SystemInfoExoticGetProperty(), SystemInfoExoticSetProperty(), SystemInfoFinalize(), SystemInfoFinalize(), GuiDisplayGen::textureDescriptorFromJSValue:inContext:callerDescription:, TimerFinalize(), TimerFinalize(), ValidateContracts(), ValidateContracts(), VectorAdd(), VectorAdd(), VectorAngleTo(), VectorAngleTo(), VectorConstruct(), VectorConstruct(), VectorCross(), VectorCross(), VectorDirection(), VectorDirection(), VectorDistanceTo(), VectorDistanceTo(), VectorDot(), VectorDot(), VectorFinalize(), VectorFinalize(), VectorFromArgumentListNoErrorInternal(), VectorFromArgumentListNoErrorInternal(), VectorGetProperty(), VectorGetProperty(), VectorMagnitude(), VectorMagnitude(), VectorMultiply(), VectorMultiply(), VectorRotateBy(), VectorRotateBy(), VectorRotationTo(), VectorRotationTo(), VectorSetProperty(), VectorSetProperty(), VectorSquaredDistanceTo(), VectorSquaredDistanceTo(), VectorSquaredMagnitude(), VectorSquaredMagnitude(), VectorStaticInterpolate(), VectorStaticInterpolate(), VectorStaticRandom(), VectorStaticRandom(), VectorStaticRandomDirection(), VectorStaticRandomDirection(), VectorStaticRandomDirectionAndLength(), VectorStaticRandomDirectionAndLength(), VectorSubtract(), VectorSubtract(), VectorToArray(), VectorToArray(), VectorToJSValue(), VectorToJSValue(), VectorTripleProduct(), VectorTripleProduct(), VisualEffectGetMaterials(), VisualEffectGetMaterials(), VisualEffectGetShaders(), VisualEffectGetShaders(), VisualEffectSetMaterialsInternal(), VisualEffectSetMaterialsInternal(), WorldScriptsGetOwnProperty(), and WorldScriptsGetOwnPropertyNames().

◆ OOJS_PROFILE_ENTER_FOR_NATIVE

#define OOJS_PROFILE_ENTER_FOR_NATIVE   @try {

Definition at line 87 of file OOJSEngineNativeWrappers.h.

◆ OOJS_PROFILE_EXIT

#define OOJS_PROFILE_EXIT   OOJS_PROFILE_EXIT_VAL(0)

Definition at line 113 of file OOJSEngineNativeWrappers.h.

Referenced by Universe::addShipAt:withRole:withinRadius:, Universe::addShipsAt:withRole:quantity:withinRadius:asGroup:, Universe::addVisualEffectAt:withKey:, CompareEntitiesByDistance(), Universe::currentSystemData, DescribeValue(), DescribeValue(), EntityFromArgumentList(), EntityFromArgumentList(), Universe::findEntitiesMatchingPredicate:parameter:inRange:ofEntity:, FindJSVisibleEntities(), FindShips(), Universe::generateSystemData:useCache:, GetJSSystemInfoForSystem(), GetRelativeToAndRange(), GetRelativeToAndRange(), HPVectorToJSValue(), HPVectorToJSValue(), DockEntity::initWithKey:definition:, OOVisualEffectEntity::initWithKey:definition:, ShipEntity::initWithKey:definition:, StationEntity::initWithKey:definition:, OOMesh(Private)::initWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:scaleFactor:cacheWriteable:, JSArrayFromNSArray(), JSDockGetDockEntity(), JSDockGetDockEntity(), JSDockGetShipEntity(), JSDockGetShipEntity(), JSEntityIsJavaScriptSearchablePredicate(), JSEntityIsJavaScriptVisiblePredicate(), JSExhaustPlumeGetExhaustPlumeEntity(), JSExhaustPlumeGetExhaustPlumeEntity(), JSFlasherGetFlasherEntity(), JSFlasherGetFlasherEntity(), JSFunctionPredicate(), JSNewNSArrayValue(), JSNewNSDictionaryValue(), JSObjectFromNSDictionary(), JSObjectGetQuaternion(), JSObjectGetQuaternion(), JSObjectGetVector(), JSObjectGetVector(), JSQuaternionSetQuaternion(), JSQuaternionSetQuaternion(), JSQuaternionWithQuaternion(), JSQuaternionWithQuaternion(), JSStationGetShipEntity(), JSStationGetShipEntity(), JSStationGetStationEntity(), JSStationGetStationEntity(), JSValueToEquipmentKeyRelaxed(), JSValueToEquipmentKeyRelaxed(), JSValueToEquipmentType(), JSValueToEquipmentType(), JSVectorSetHPVector(), JSVectorSetHPVector(), JSVectorWithHPVector(), JSVectorWithHPVector(), JSVectorWithVector(), JSVectorWithVector(), JSVisualEffectGetVisualEffectEntity(), JSVisualEffectGetVisualEffectEntity(), JSWaypointGetWaypointEntity(), JSWaypointGetWaypointEntity(), JSWormholeGetWormholeEntity(), JSWormholeGetWormholeEntity(), OOMesh(Private)::loadData:scaleFactor:, ManifestDeleteProperty(), ManifestGetOwnProperty(), ManifestSetPropertyExotic(), MissionVariablesDeleteProperty(), MissionVariablesGetOwnProperty(), MissionVariablesGetOwnPropertyNames(), MissionVariablesSetProperty(), OOMesh(Private)::modelData, Universe::newDockWithName:andScaleFactor:, Universe::newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:, Universe::newShipWithRole:, Universe::newVisualEffectWithName:, NSObject(OOJavaScriptConversion)::oo_jsDescriptionWithClassName:, OOJSArgumentListGetNumberNoError(), OOJSArgumentListGetNumberNoError(), OOJSDictionaryFromJSObject(), OOJSDictionaryFromJSObject(), OOJSDictionaryFromJSValue(), OOJSDictionaryFromJSValue(), OOJSDictionaryFromStringTable(), OOJSDictionaryFromStringTable(), OOJSNativeObjectFromJSObject(), OOJSNativeObjectFromJSObject(), OOJSNativeObjectFromJSValue(), OOJSNativeObjectFromJSValue(), OOJSObjectGetterImplPRIVATE(), OOJSObjectWrapperFinalize(), OOStringFromJSString(), OOStringFromJSValue(), OOStringFromJSValue(), OOStringFromJSValueEvenIfNull(), OOStringFromJSValueEvenIfNull(), QuaternionConjugate(), QuaternionConjugate(), QuaternionConstruct(), QuaternionConstruct(), QuaternionDot(), QuaternionDot(), QuaternionFromArgumentListNoErrorInternal(), QuaternionFromArgumentListNoErrorInternal(), QuaternionGetProperty(), QuaternionGetProperty(), QuaternionMultiply(), QuaternionMultiply(), QuaternionNormalize(), QuaternionNormalize(), QuaternionRotate(), QuaternionRotate(), QuaternionRotateX(), QuaternionRotateX(), QuaternionRotateY(), QuaternionRotateY(), QuaternionRotateZ(), QuaternionRotateZ(), QuaternionSetProperty(), QuaternionSetProperty(), QuaternionStaticRandom(), QuaternionStaticRandom(), QuaternionToArray(), QuaternionToArray(), QuaternionToJSValue(), QuaternionToJSValue(), QuaternionVectorForward(), QuaternionVectorForward(), QuaternionVectorRight(), QuaternionVectorRight(), QuaternionVectorUp(), QuaternionVectorUp(), Universe::randomShipKeyForRoleRespectingConditions:, RemoveOrExplodeShip(), RemoveOrExplodeShip(), OOMesh(Private)::setModelFromModelData:name:, ShipEntity(Private)::setUpOneSubentity:, DockEntity::setUpShipFromDictionary:, ShipEntity::setUpShipFromDictionary:, StationEntity::setUpShipFromDictionary:, ShipEntity::setUpSubEntities, OOMesh(Private)::setUpVertexArrays, OOVisualEffectEntity::setUpVisualEffectFromDictionary:, ShipAddCollisionException(), ShipAddCollisionException(), ShipAddDefenseTarget(), ShipAddDefenseTarget(), ShipAdjustCargo(), ShipAdjustCargo(), ShipBecomeCascadeExplosion(), ShipBecomeCascadeExplosion(), ShipBroadcastCascadeImminent(), ShipBroadcastCascadeImminent(), ShipBroadcastDistressMessage(), ShipBroadcastDistressMessage(), ShipCheckCourseToDestination(), ShipCheckCourseToDestination(), ShipCheckScanner(), ShipCheckScanner(), Universe::shipClassForShipDictionary:, ShipClearDefenseTargets(), ShipClearDefenseTargets(), ShipDamageAssessment(), ShipDamageAssessment(), ShipEnterWormhole(), ShipEnterWormhole(), ShipGetMaterials(), ShipGetMaterials(), ShipGetSafeCourseToDestination(), ShipGetSafeCourseToDestination(), ShipGetShaders(), ShipGetShaders(), ShipMarkTargetForFines(), ShipMarkTargetForFines(), ShipNotifyGroupOfWormhole(), ShipNotifyGroupOfWormhole(), ShipOfferToEscort(), ShipOfferToEscort(), ShipPatrolReportIn(), ShipPatrolReportIn(), ShipPerformAttack(), ShipPerformAttack(), ShipPerformCollect(), ShipPerformCollect(), ShipPerformEscort(), ShipPerformEscort(), ShipPerformFaceDestination(), ShipPerformFaceDestination(), ShipPerformFlee(), ShipPerformFlee(), ShipPerformFlyToRangeFromDestination(), ShipPerformFlyToRangeFromDestination(), ShipPerformHold(), ShipPerformHold(), ShipPerformIdle(), ShipPerformIdle(), ShipPerformIntercept(), ShipPerformIntercept(), ShipPerformLandOnPlanet(), ShipPerformLandOnPlanet(), ShipPerformMining(), ShipPerformMining(), ShipPerformScriptedAI(), ShipPerformScriptedAI(), ShipPerformScriptedAttackAI(), ShipPerformScriptedAttackAI(), ShipPerformStop(), ShipPerformStop(), ShipPerformTumble(), ShipPerformTumble(), ShipRecallDockingInstructions(), ShipRecallDockingInstructions(), ShipRemoveCollisionException(), ShipRemoveCollisionException(), ShipRemoveDefenseTarget(), ShipRemoveDefenseTarget(), ShipRequestDockingInstructions(), ShipRequestDockingInstructions(), ShipRequestHelpFromGroup(), ShipRequestHelpFromGroup(), ShipSetMaterialsInternal(), ShipSetMaterialsInternal(), ShipThreatAssessment(), ShipThreatAssessment(), ShipThrowSpark(), ShipThrowSpark(), ShipUpdateEscortFormation(), ShipUpdateEscortFormation(), SoundFromJSValue(), SoundFromJSValue(), SpecialJSWarning(), SpecialJSWarning(), SystemInfoDeleteProperty(), SystemInfoExoticDeleteProperty(), SystemInfoExoticGetOwnProperty(), SystemInfoExoticGetOwnPropertyNames(), SystemInfoExoticGetProperty(), SystemInfoExoticSetProperty(), GuiDisplayGen::textureDescriptorFromJSValue:inContext:callerDescription:, ValidateContracts(), ValidateContracts(), VectorAdd(), VectorAdd(), VectorAngleTo(), VectorAngleTo(), VectorConstruct(), VectorConstruct(), VectorCross(), VectorCross(), VectorDirection(), VectorDirection(), VectorDistanceTo(), VectorDistanceTo(), VectorDot(), VectorDot(), VectorFromArgumentListNoErrorInternal(), VectorFromArgumentListNoErrorInternal(), VectorGetProperty(), VectorGetProperty(), VectorMagnitude(), VectorMagnitude(), VectorMultiply(), VectorMultiply(), VectorRotateBy(), VectorRotateBy(), VectorRotationTo(), VectorRotationTo(), VectorSetProperty(), VectorSetProperty(), VectorSquaredDistanceTo(), VectorSquaredDistanceTo(), VectorSquaredMagnitude(), VectorSquaredMagnitude(), VectorStaticInterpolate(), VectorStaticInterpolate(), VectorStaticRandom(), VectorStaticRandom(), VectorStaticRandomDirection(), VectorStaticRandomDirection(), VectorStaticRandomDirectionAndLength(), VectorStaticRandomDirectionAndLength(), VectorSubtract(), VectorSubtract(), VectorToArray(), VectorToArray(), VectorToJSValue(), VectorToJSValue(), VectorTripleProduct(), VectorTripleProduct(), VisualEffectGetMaterials(), VisualEffectGetMaterials(), VisualEffectGetShaders(), VisualEffectGetShaders(), VisualEffectSetMaterialsInternal(), VisualEffectSetMaterialsInternal(), WorldScriptsGetOwnProperty(), and WorldScriptsGetOwnPropertyNames().

◆ OOJS_PROFILE_EXIT_JSVAL

◆ OOJS_PROFILE_EXIT_VAL

#define OOJS_PROFILE_EXIT_VAL ( rval)
Value:
} \
OOJSUnreachable(__FUNCTION__, __FILE__, __LINE__); \
return (rval);

Definition at line 80 of file OOJSEngineNativeWrappers.h.

80#define OOJS_PROFILE_EXIT_VAL(rval) \
81 } \
82 OOJSUnreachable(__FUNCTION__, __FILE__, __LINE__); \
83 return (rval);

◆ OOJS_PROFILE_EXIT_VOID

◆ OOJSProfileEnter

#define OOJSProfileEnter ( frame,
function )
Value:
do { \
} while (0)

Definition at line 188 of file OOJSEngineNativeWrappers.h.

188#define OOJSProfileEnter(frame, function) \
189 do { \
190 } while (0)

◆ OOJSProfileExit

#define OOJSProfileExit ( frame)
Value:
do { \
} while (0)

Definition at line 191 of file OOJSEngineNativeWrappers.h.

191#define OOJSProfileExit(frame) \
192 do { \
193 } while (0)

Function Documentation

◆ OOJSReportWrappedException()

void OOJSReportWrappedException ( JSContext * context,
id exception )

Definition at line 973 of file OOJavaScriptEngine.m.

974{
975 if (!JS_IsExceptionPending(context)) {
976 if ([exception isKindOfClass:[NSException class]])
977 OOJSReportError(context, @"Native exception: %@", [exception reason]);
978 else
979 OOJSReportError(context, @"Unidentified native exception");
980 }
981 // Else, let the pending exception propagate.
982}
void OOJSReportError(JSContext *context, NSString *format,...)

◆ OOJSUnreachable()

void OOJSUnreachable ( const char * function,
const char * file,
unsigned line )

Definition at line 986 of file OOJavaScriptEngine.m.

987{
988 OOLog(@"fatal.unreachable", @"Supposedly unreachable statement reached in %s (%@:%u) -- terminating.", function, OOLogAbbreviatedFileName(file), line);
989 abort();
990}
#define OOLog(class, format,...)
Definition OOLogging.h:84
NSString * OOLogAbbreviatedFileName(const char *inName)
Definition OOLogging.m:762

References OOLog, and OOLogAbbreviatedFileName().

Here is the call graph for this function: