MCPcopy Index your code
hub / github.com/assaultcube/AC / delalias

Function delalias

source/src/command.cpp:128–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126});
127
128void delalias(const char *name)
129{
130 ident *id = idents->access(name);
131 if(!id || id->type != ID_ALIAS) conoutf("unknown alias %s", name);
132 else if(identaccessdenied(id)) conoutf("cannot remove alias %s in this execution context", id->name);
133 else
134 {
135 clearstack(id->stack);
136 idents->remove(name);
137 return;
138 }
139 scripterr();
140}
141COMMAND(delalias, "s");
142
143void alias(const char *name, const char *action, bool temp, bool constant)

Callers

nothing calls this directly

Calls 6

identaccessdeniedFunction · 0.85
clearstackFunction · 0.85
scripterrFunction · 0.85
accessMethod · 0.80
conoutfFunction · 0.70
removeMethod · 0.45

Tested by

no test coverage detected