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

Function pop

source/src/command.cpp:104–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102COMMAND(push, "ss");
103
104void 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
118COMMANDF(pop, "v", (char **args, int numargs)
119{

Callers 6

execactionMethod · 0.85
command.cppFile · 0.85
deletecontentsMethod · 0.85
deletearraysMethod · 0.85
selectionwalkFunction · 0.85
runMethod · 0.85

Calls 5

identaccessdeniedFunction · 0.85
popidentFunction · 0.85
scripterrFunction · 0.85
accessMethod · 0.80
conoutfFunction · 0.70

Tested by

no test coverage detected