| 126 | }); |
| 127 | |
| 128 | void 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 | } |
| 141 | COMMAND(delalias, "s"); |
| 142 | |
| 143 | void alias(const char *name, const char *action, bool temp, bool constant) |
nothing calls this directly
no test coverage detected