| 102 | COMMAND(push, "ss"); |
| 103 | |
| 104 | void pop(const char *name) |
| 105 | { |
| 106 | ident *id = idents->access(name); |
| 107 | if(!id || id->type != ID_ALIAS) conoutf("unknown alias %s", name); |
| 108 | else if(identaccessdenied(id)) conoutf("cannot redefine alias %s in this execution context", name); |
| 109 | else if(!id->stack) conoutf("ident stack exhausted"); |
| 110 | else |
| 111 | { |
| 112 | popident(*id); |
| 113 | return; |
| 114 | } |
| 115 | scripterr(); |
| 116 | } |
| 117 | |
| 118 | COMMANDF(pop, "v", (char **args, int numargs) |
| 119 | { |
no test coverage detected