Skip to content

Commit

Permalink
use modern pointers consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Pelham committed Sep 15, 2024
1 parent ba92a29 commit 35ba8e9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions include/prism/entry_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@

namespace Prism
{
class Application* AppCreate(int argc, char** argv);
};
std::unique_ptr<class Application> AppCreate(int argc, char** argv);
}

int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, PSTR cmdline, int cmdshow)
{
// Create the application
Prism::Application* app = Prism::AppCreate(__argc, __argv);
auto app = Prism::AppCreate(__argc, __argv);

// Run the application
app->run();

// Clean up
delete app;
// Shutdown the application
app.reset();

return 0;
}

0 comments on commit 35ba8e9

Please sign in to comment.