
ResolveCommand will not succeed for an alias command with arguments, and the code wasn't providing any. Replace that with explicit query(ies) for the existence of a command with the given name.
16 lines
278 B
C++
16 lines
278 B
C++
void noop() {}
|
|
|
|
void fun() {
|
|
int user_command = 474747;
|
|
int alias_command = 474747;
|
|
int alias_command_with_arg = 474747;
|
|
int platform = 474747; // built-in command
|
|
noop(); // breakpoint 1
|
|
}
|
|
|
|
int main() {
|
|
fun();
|
|
noop(); // breakpoint 2
|
|
return 0;
|
|
}
|