Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/v/redpanda/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@ class application {
// run these first on destruction
deferred_actions _deferred;
};

namespace debug {
extern application* app;
}
5 changes: 5 additions & 0 deletions src/v/redpanda/main.cc
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#include "redpanda/application.h"
#include "syschecks/syschecks.h"

namespace debug {
application* app;
}

int main(int argc, char** argv, char** /*env*/) {
// must be the first thing called
syschecks::initialize_intrinsics();
application app;
debug::app = &app;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very cool.

return app.run(argc, argv);
}
Loading