Oolite 1.91.0.7650-250121-affa790
Loading...
Searching...
No Matches
OOFunctionAttributes.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GCC_ATTR(x)
 
#define __has_feature(x)
 
#define __has_attribute(x)
 
#define __has_extension(x)
 
#define OOINLINE   static inline
 
#define ALWAYS_INLINE_FUNC   GCC_ATTR((always_inline))
 
#define PURE_FUNC   GCC_ATTR((pure))
 
#define CONST_FUNC   GCC_ATTR((const))
 
#define NONNULL_FUNC   GCC_ATTR((nonnull))
 
#define DEPRECATED_FUNC   GCC_ATTR((deprecated))
 
#define NO_RETURN_FUNC   GCC_ATTR((noreturn))
 
#define NO_INLINE_FUNC   GCC_ATTR((noinline))
 
#define INLINE_PURE_FUNC   ALWAYS_INLINE_FUNC PURE_FUNC
 
#define INLINE_CONST_FUNC   ALWAYS_INLINE_FUNC CONST_FUNC
 
#define DEPRECATED_MSG(msg)
 
#define DEPRECATED_METHOD(msg)
 
#define EXPECT(x)
 
#define EXPECT_NOT(x)
 
#define OO_RETURNS_RETAINED
 
#define OO_NS_CONSUMED
 
#define OO_UNREACHABLE()
 
#define OO_TAKES_FORMAT_STRING(stringIndex, firstToCheck)
 

Macro Definition Documentation

◆ __has_attribute

#define __has_attribute ( x)
Value:
(0)

Definition at line 20 of file OOFunctionAttributes.h.

◆ __has_extension

#define __has_extension ( x)
Value:
(0)

Definition at line 24 of file OOFunctionAttributes.h.

◆ __has_feature

#define __has_feature ( x)
Value:
(0)

Definition at line 16 of file OOFunctionAttributes.h.

◆ ALWAYS_INLINE_FUNC

#define ALWAYS_INLINE_FUNC   GCC_ATTR((always_inline))

Definition at line 36 of file OOFunctionAttributes.h.

◆ CONST_FUNC

#define CONST_FUNC   GCC_ATTR((const))

Definition at line 42 of file OOFunctionAttributes.h.

◆ DEPRECATED_FUNC

#define DEPRECATED_FUNC   GCC_ATTR((deprecated))

Definition at line 44 of file OOFunctionAttributes.h.

◆ DEPRECATED_METHOD

#define DEPRECATED_METHOD ( msg)

Definition at line 63 of file OOFunctionAttributes.h.

◆ DEPRECATED_MSG

#define DEPRECATED_MSG ( msg)
Value:

Definition at line 55 of file OOFunctionAttributes.h.

◆ EXPECT

#define EXPECT ( x)
Value:
(x)
float x

Definition at line 71 of file OOFunctionAttributes.h.

Referenced by ShipEntity::abandonShip, OOJSScript::callMethod:inContext:withArguments:count:result:, PlayerEntity(OOPrivate)::checkEntityForMassLock:withScanClass:, ShipEntity::checkForAegis, GuiDisplayGen(Internal)::drawStarChart:x:y:z:alpha:, Universe::drawUniverse, PlayerEntity::fuelChargeRate, ShipEntity::fuelChargeRate, OOJSFunction::functionValue, GenerateMipMaps4(), GetThisQuaternion(), GetThisVector(), GlobalAddFrameCallback(), GlobalRemoveFrameCallback(), Inited(), OOMesh(Private)::initWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:scaleFactor:cacheWriteable:, JSObjectGetQuaternion(), JSObjectGetVector(), OOMesh(Private)::loadData:scaleFactor:, PlayerEntity::lookingAtSunWithThresholdAngleCos:, OOConstantFromJSValuePRIVATE(), OOJSFrameCallbacksInvoke(), OOJSIDFromString(), OOJSProfileEnter(), OOJSProfileExit(), OOStringFromJSString(), OOStringFromJSValue(), PlayerEntity(OOControlsPrivate)::pollDemoControls:, PlayerEntity(OOControlsPrivate)::pollDockedControls:, PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollViewControls, quaternion_limited_rotation_between(), quaternion_rotation_between(), quaternion_rotation_betweenHP(), Universe::removeAllEntitiesExceptPlayer, OOScriptTimer::scheduleTimer, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, PlayerEntity::setUpShipFromDictionary:, SqueezeHorizontally1(), SqueezeHorizontally2(), SqueezeHorizontally4(), SqueezeVertically1(), SqueezeVertically2(), SqueezeVertically4(), StationDockPlayer(), StretchHorizontally4(), SystemGetProperty(), Universe::update:, and OOJavaScriptEngine(WatchdogTimer)::watchdogTimerThread.

◆ EXPECT_NOT

#define EXPECT_NOT ( x)
Value:
(x)

Definition at line 72 of file OOFunctionAttributes.h.

Referenced by AddCallback(), OOOperationQueueAsyncWorkManager::addTask:priority:, OOTexture(OOPrivate)::addToCaches, AddTriangle_slow(), OOConcreteTexture::apply, ApplyColor(), PlayerEntity::applyRoll:andClimb:, OOTextureLoader(OOPrivate)::applySettings, ShipEntity::availableCargoSpace, bellf(), ResourceManager::checkCacheUpToDateForPaths:, PlayerEntity(OOPrivate)::checkEntityForMassLock:withScanClass:, ShipEntity::checkForAegis, OOOpenGLExtensionManager(OOPrivate)::CheckRegExps, ClockAddSeconds(), ClockClockStringForTime(), ConsoleGetProfile(), ConsoleProfile(), ConsoleTrace(), OOConcreteMutableProbabilitySet::copyWithZone:, PlayerEntity::dialAftShield, PlayerEntity::dialForwardShield, OOSingleTextureMaterial::doApply, PlayerEntity::doBookkeeping:, OOPNGTextureLoader(OOPrivate)::doLoadTexture, GameController(OOPrivate)::doPerformGameTick, HeadUpDisplay(Private)::drawDials, GuiDisplayGen(Internal)::drawGLDisplay:x:y:z:, HeadUpDisplay(Private)::drawHUDItem:, DustEntity::drawImmediate:translucent:, HeadUpDisplay(Private)::drawScanner:, GuiDisplayGen(Internal)::drawStarChart:x:y:z:alpha:, OOSunEntity::drawStarGlare, ShipEntity::dumpItem:, OOAsyncQueue::enqueue:, EnsureCorrectDataSize(), PlayerEntity::enterGalacticWitchspace, CollisionRegion::entityByEntityOcclusionToValue, EntityFromArgumentList(), EntityGetProperty(), EntitySetProperty(), EquipmentInfoGetProperty(), EquipmentInfoSetProperty(), Expand(), ExpandDigitKey(), ExpandKey(), ExpandSystemNameEscape(), ExpandSystemNameForGalaxyEscape(), OOMesh::findBoundingBoxRelativeToPosition:basis:ri:rj:selfPosition:selfBasis:si:sj:, ShipEntity::fireMissileWithIdentifier:andTarget:, FontMeasureString(), OOTextureLoader::generateMipMapsForCubeMap, GetJSSystemInfoForSystem(), OOSystemDescriptionManager(OOPrivate)::getProperty:forSystemKey:withUniversal:, GetRelativeToAndRange(), GLDrawBallBillboard(), GlobalAddFrameCallback(), GlobalClearExtraGuiScreenKeys(), GlobalGetGuiColorSettingForKey(), GlobalGetScreenBackgroundForKey(), GlobalIsValidFrameCallback(), GlobalLog(), GlobalRemoveFrameCallback(), GlobalSetColorSaturation(), GlobalSetExtraGuiScreenKeys(), GlobalSetGuiColorSettingForKey(), GlobalSetScreenBackground(), GlobalSetScreenBackgroundForKey(), GlobalSetScreenOverlay(), GlobalTakeSnapShot(), GrowCallbackList(), OOMacJoystickManager::handleInputEvent:, HPVectorToJSValue(), Entity::init, OOTexture::init, OOWaypointEntity::initWithDictionary:, OOConcreteTexture::initWithLoader:key:options:anisotropy:lodBias:, OOBasicMaterial::initWithName:, OOBasicMaterial::initWithName:configuration:, OOTextureLoader::initWithPath:options:, IntegerFromString(), OOOXZManager::isRestarting, JSArrayFromNSArray(), JSFunctionPredicate(), JSObjectFromNSDictionary(), JSObjectGetQuaternion(), JSObjectGetVector(), JSQuaternionWithQuaternion(), JSValueToHPVector(), JSValueToQuaternion(), JSValueToVector(), JSVectorSetHPVector(), JSVectorWithHPVector(), JSVectorWithVector(), OOTextureLoader::loaderWithPath:options:, PlayerEntity::lookingAtSunWithThresholdAngleCos:, ShipEntity::lookingAtSunWithThresholdAngleCos:, OOOpenGLExtensionManager(OOPrivate)::lookUpPerGPUSettingsWithVersionString:extensionsString:, OOJavaScriptEngine(Private)::lookUpStandardClassPointers, AI::message:, ShipEntity::missileLaunchPosition, MissionAddMessageText(), MissionSetInstructionsInternal(), NSNumber(OOExtensions)::oo_isBoolean, OOAllocatePixMap(), HeadUpDisplay::OODrawStringQuadsAligned, OODuplicatePixMap(), OOExpandPixMap(), OOExtractPixMapChannel(), OOFreePixMap(), OOGenerateMipMaps(), OOHighResTimeDeltaInSeconds(), OOJSArgumentListGetNumberNoError(), OOJSDictionaryFromJSObject(), OOJSDictionaryFromJSValue(), OOJSDictionaryFromStringTable(), OOJSDumpStack(), OOJSFrameCallbacksInvoke(), OOJSIDFromString(), OOJSInitJSIDCachePRIVATE(), OOJSObjectGetterImplPRIVATE(), OOJSProfileEnter(), OOJSStrLiteralCachePRIVATE(), OOLogAbbreviatedFileName(), OOLogWillDisplayMessagesInClass(), OOMatrixForBillboard(), OOPixMapAddPixMap(), OOPixMapModulatePixMap(), OOPixMapModulateUniform(), OOPixMapToRGBA(), OOResizePixMap(), OOScalePixMap(), OOShaderUniformTypeFromMethodSignature(), OOStringFromDeciCredits(), OOStringFromJSString(), ResourceManager::paths, PlayerEntity(OOPrivate)::performWitchspaceCountdownUpdates:, OOSoundSource::play, PlayerReplaceShip(), PlayerSetEscapePodDestination(), PlayerShipAddParcel(), PlayerShipAddPassenger(), PlayerShipAwardContract(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipCancelDockingRequest(), PlayerShipDisengageAutopilot(), PlayerShipEngageAutopilotToStation(), PlayerShipGetProperty(), PlayerShipLaunch(), PlayerShipRemoveAllCargo(), PlayerShipRemoveContract(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipRequestDockingClearance(), PlayerShipSetMultiFunctionText(), PlayerShipSetPrimedEquipment(), PlayerShipSetProperty(), PlayerShipUseSpecialCargo(), PlayerEntity(OOControlsPrivate)::pollGuiScreenControlsWithFKeyAlias:, Universe::populateSystemFromDictionariesWithSun:andPlanet:, ShipEntity::primaryTarget, ShipEntity::primaryTargetWithoutValidityCheck, OOConcreteProbabilitySet::privObjectForWeight:, QuaternionConjugate(), QuaternionConstruct(), QuaternionDot(), QuaternionFromArgumentListNoErrorInternal(), QuaternionGetProperty(), QuaternionMultiply(), QuaternionNormalize(), QuaternionRotate(), QuaternionRotateX(), QuaternionRotateY(), QuaternionRotateZ(), QuaternionSetProperty(), QuaternionToArray(), QuaternionToJSValue(), QuaternionToSource(), QuaternionToString(), QuaternionVectorForward(), QuaternionVectorRight(), QuaternionVectorUp(), OOPNGTextureLoader(OOPrivate)::readBytes:count:, ShipEntity::releaseCargoPodsDebris, OOTexture(SubclassInterface)::removeFromCaches, RemoveOrExplodeShip(), Universe::repopulateSystem, ReportJSError(), ScanTokensFromString(), OOScriptTimer::scheduleTimer, ScriptWithCompiledData(), PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToMarketInfoScreen, PlayerEntity::setGuiToStatusScreen, OOOctreeBuilder::SetNode_slow, OOCacheManager::setObject:forKey:inCache:, PlayerEntity::setUpAndConfirmOK:saveGame:, PlayerEntity::sharedPlayer, ShipAddCargoEntity(), ShipAddCollisionException(), ShipAddDefenseTarget(), ShipAwardEquipment(), ShipCanAwardEquipment(), ShipCheckScanner(), ShipCommsMessage(), ShipDealEnergyDamage(), ShipDumpCargo(), ShipEjectItem(), ShipEjectSpecificItem(), ShipEnterWormhole(), ShipEquipmentStatus(), ShipExitAI(), ShipExitSystem(), ShipGetProperty(), ShipGroupAddShip(), ShipGroupConstruct(), ShipGroupContainsShip(), ShipGroupGetProperty(), ShipGroupRemoveShip(), ShipGroupSetProperty(), ShipHasEquipmentProviding(), ShipHasRole(), ShipOfferToEscort(), ShipPatrolReportIn(), ShipReactToAIMessage(), ShipRemove(), ShipRemoveCollisionException(), ShipRemoveDefenseTarget(), ShipRemoveEquipment(), ShipRunLegacyScriptActions(), ShipSendAIMessage(), ShipSetAI(), ShipSetBounty(), ShipSetCargo(), ShipSetCargoType(), ShipSetEquipmentStatus(), ShipSetProperty(), ShipSetScript(), ShipSpawn(), ShipSwitchAI(), ShipThreatAssessment(), SoundGetProperty(), SoundSourceConstruct(), SoundSourcePlay(), SoundSourcePlayOrRepeat(), SoundSourceStop(), SoundStaticStopMusic(), SpecialJSWarning(), SqueezeVertically1(), SqueezeVertically2(), SqueezeVertically4(), StationCanDockShip(), StationDockPlayer(), StationLaunchShipWithRole(), StationSetMarketPrice(), StationSetMarketQuantity(), OORegExpMatcher::string:matchesExpression:flags:, SunCancelNova(), SunGetProperty(), SunGoNova(), SystemAddMoon(), SystemAddPlanet(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemEntitiesWithScanClass(), SystemFilteredEntities(), SystemInfoSamplePrice(), SystemInfoSetProperty(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLocationFromCode(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:, TimerConstruct(), TimerGetProperty(), TimerSetProperty(), TimerStart(), TimerStop(), TreeInsert(), OOBasicMaterial::unapplyWithNext:, DustEntity::update:, OOExhaustPlumeEntity::update:, PlayerEntity::update:, Universe::update:, PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities, OOSunEntity::updateCameraRelativePosition, UpdateProfileForFrame(), ShipEntity::updateTrackingCurve, PlayerEntity::validateCompassTarget, ResourceManager::validateManifest:forOXP:, Entity::validForAddToUniverse, VectorAdd(), VectorAngleTo(), VectorConstruct(), VectorCross(), VectorDirection(), VectorDistanceTo(), VectorDot(), VectorFromArgumentListNoErrorInternal(), VectorFromCoordinateSystem(), VectorGetProperty(), VectorMagnitude(), VectorMultiply(), VectorRotateBy(), VectorRotationTo(), VectorSetProperty(), VectorSquaredDistanceTo(), VectorSquaredMagnitude(), VectorStaticInterpolate(), VectorSubtract(), VectorToArray(), VectorToCoordinateSystem(), VectorToJSValue(), VectorToSource(), VectorToString(), VectorTripleProduct(), VisualEffectScale(), OOJavaScriptEngine(WatchdogTimer)::watchdogTimerThread, OOMaterial(OOSubclassInterface)::willDealloc, OODefaultShaderSynthesizer::writeDiffuseColorTermIfNeeded, OODefaultShaderSynthesizer::writeLightMaps, and OODefaultShaderSynthesizer::writeSpecularLighting.

◆ GCC_ATTR

#define GCC_ATTR ( x)

Definition at line 9 of file OOFunctionAttributes.h.

◆ INLINE_CONST_FUNC

#define INLINE_CONST_FUNC   ALWAYS_INLINE_FUNC CONST_FUNC

Definition at line 49 of file OOFunctionAttributes.h.

Referenced by Universe::framesDoneThisUpdate, and PlayerEntity::wormhole.

◆ INLINE_PURE_FUNC

#define INLINE_PURE_FUNC   ALWAYS_INLINE_FUNC PURE_FUNC

Definition at line 48 of file OOFunctionAttributes.h.

Referenced by OOOpenGLExtensionManager::useDustShader.

◆ NO_INLINE_FUNC

#define NO_INLINE_FUNC   GCC_ATTR((noinline))

Definition at line 46 of file OOFunctionAttributes.h.

Referenced by AddTriangle_slow().

◆ NO_RETURN_FUNC

#define NO_RETURN_FUNC   GCC_ATTR((noreturn))

Definition at line 45 of file OOFunctionAttributes.h.

◆ NONNULL_FUNC

#define NONNULL_FUNC   GCC_ATTR((nonnull))

Definition at line 43 of file OOFunctionAttributes.h.

◆ OO_NS_CONSUMED

#define OO_NS_CONSUMED

Definition at line 88 of file OOFunctionAttributes.h.

Referenced by OOConsumeReference().

◆ OO_RETURNS_RETAINED

#define OO_RETURNS_RETAINED

Definition at line 80 of file OOFunctionAttributes.h.

◆ OO_TAKES_FORMAT_STRING

#define OO_TAKES_FORMAT_STRING ( stringIndex,
firstToCheck )

◆ OO_UNREACHABLE

#define OO_UNREACHABLE ( )
Value:
do {} while (0)

Definition at line 96 of file OOFunctionAttributes.h.

◆ OOINLINE

#define OOINLINE   static inline

Definition at line 31 of file OOFunctionAttributes.h.

Referenced by accurateDistanceBetweenPlanetPositions(), AddTriangle(), AllocElement(), ApplyColor(), BackLink(), BackLinkIndex(), BackLinkRoot(), CacheValue(), PlayerEntity(Scripting)::CurrentScriptDesc(void), DestroyGeometryData(), distanceBetweenPlanetPositions(), Universe::EntityInRange, EntityInRange(), equal_seeds(), Universe::framesDoneThisUpdate, FreeElement(), GetIndentLevel(), HeadUpDisplay::GLColorWithOverallAlpha, Inited(), OOOctreeBuilder::InsertNode, is_nil_seed(), JSEntityClass(), JSEntityPrototype(), MethodExpectsParameter(), OOClampInteger(), OOCompactPixMap(), OOCompassModeFromJSString(), OOCompassModeFromJSValue(), OOCredits(), OODebugDrawBasisAtOrigin(), OODebugDrawBoundingBox(), OODebugDrawBoundingBoxBetween(), OODebugDrawColoredBoundingBox(), OODebugDrawColoredVector(), OODebugDrawColoredVectorAtOrigin(), OODebugDrawLine(), OODebugDrawNormal(), OODebugDrawNormalAtOrigin(), OODebugDrawVector(), OODebugDrawVectorAtOrigin(), OOEntityStatusFromJSString(), OOEntityStatusFromJSValue(), OOGalacticHyperspaceBehaviourFromJSString(), OOGalacticHyperspaceBehaviourFromJSValue(), OOGetPlayer(), OOGetUniverse(), OOGUIScreenIDFromJSString(), OOGUIScreenIDFromJSValue(), OOIntCredits(), OOIntegerFromObject(), OOIsNullPixMap(), OOIsPlayerStale(), OOIsStaleEntity(), OOJSAcquireContext(), OOJSGetClass(), OOJSIsMemberOfSubclass(), OOJSRelinquishContext(), OOJSStringFromCompassMode(), OOJSStringFromEntityStatus(), OOJSStringFromGalacticHyperspaceBehaviour(), OOJSStringFromGUIScreenID(), OOJSStringFromLegalStatusReason(), OOJSStringFromScanClass(), OOJSStringFromShipDamageType(), OOJSStringFromViewID(), OOJSValueFromBOOL(), OOJSValueFromCompassMode(), OOJSValueFromEntityStatus(), OOJSValueFromGalacticHyperspaceBehaviour(), OOJSValueFromGUIScreenID(), OOJSValueFromLegalStatusReason(), OOJSValueFromNativeObject(), OOJSValueFromScanClass(), OOJSValueFromShipDamageType(), OOJSValueFromViewID(), OOJSValueIsArray(), OOJSValueIsFunction(), OOMinimumPixMapBufferSize(), OONSInvocationOperationClass(), OONSOperationClass(), OONSOperationQueueClass(), OOPixMapBytesPerPixel(), OOPlistErrorIsSchemaError(), OOScanClassFromJSString(), OOScanClassFromJSValue(), OOShadersSupported(), OOStringFromIntCredits(), OOUIntegerFromObject(), OOViewIDFromJSString(), OOViewIDFromJSValue(), PQCompare(), PQLeftChild(), PQParent(), PQRightChild(), PtAdd(), PtCross(), PtDot(), PtNormal(), PtRotACW(), PtRotCW(), PtScale(), PtSub(), PlayerEntity(Scripting)::RecursiveRemapStatus, rotate_byte_left(), RowInRange(), HeadUpDisplay::SetCompassBlipColor, SetIndentLevel(), OOOctreeBuilder::SetNode, SqueezeHorizontally(), SqueezeVertically(), OOOctreeBuilder::State, StatusIsSendable(), StretchHorizontally(), StretchVertically(), travelTimeBetweenPlanetPositions(), useDefined(), OOOpenGLExtensionManager::useDustShader, and PlayerEntity::wormhole.

◆ PURE_FUNC

#define PURE_FUNC   GCC_ATTR((pure))

Definition at line 41 of file OOFunctionAttributes.h.