19 lines
280 B
C
19 lines
280 B
C
#include "command.h"
|
|
#include "context.h"
|
|
|
|
static int quit(
|
|
const struct command *cmd,
|
|
struct debug_context *ctx,
|
|
int argc,
|
|
const char **argv,
|
|
void *argp)
|
|
{
|
|
ctx->ctx_quit = true;
|
|
return 0;
|
|
}
|
|
|
|
const struct command cmd_quit = {
|
|
.cmd_name = "quit",
|
|
.cmd_callback = quit,
|
|
};
|