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

Function pusha

source/src/command.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void pusha(const char *name, char *action)
87{
88 ident *id = newident(name, execcontext);
89 if(identaccessdenied(id))
90 {
91 conoutf("cannot redefine alias %s in this execution context", id->name);
92 scripterr();
93 return;
94 }
95 pushident(*id, action);
96}
97
98void push(const char *name, const char *action)
99{

Callers 1

pushFunction · 0.85

Calls 5

newidentFunction · 0.85
identaccessdeniedFunction · 0.85
scripterrFunction · 0.85
pushidentFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected