MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / RemoveLabel

Method RemoveLabel

source/script.cpp:4202–4214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4200
4201
4202void Script::RemoveLabel(Label *aLabel)
4203// Remove a label from the linked list.
4204// Used by DefineFunc to implement hotkey/hotstring functions.
4205{
4206 if (aLabel->mPrevLabel)
4207 aLabel->mPrevLabel->mNextLabel = aLabel->mNextLabel;
4208 else
4209 mFirstLabel = aLabel->mNextLabel;
4210 if (aLabel->mNextLabel)
4211 aLabel->mNextLabel->mPrevLabel = aLabel->mPrevLabel;
4212 else
4213 mLastLabel = aLabel->mPrevLabel;
4214}
4215
4216
4217

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected