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

Method AddMenu

source/script_menu.cpp:270–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270UserMenu *Script::AddMenu(UserMenu *aMenu)
271// Returns the newly created UserMenu object.
272{
273 ASSERT(aMenu);
274 if (!mFirstMenu)
275 mFirstMenu = mLastMenu = aMenu;
276 else
277 {
278 mLastMenu->mNextMenu = aMenu;
279 // This must be done after the above:
280 mLastMenu = aMenu;
281 }
282 ++mMenuCount; // Only after memory has been successfully allocated.
283 return aMenu;
284}
285
286
287

Callers 1

UserMenuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected