Skip to content

Commit

Permalink
Remove main method and move its content to example1 function in `ex…
Browse files Browse the repository at this point in the history
…1.hpp`

* Include `ex1.hpp` header file
* Replace call to `ex1()` with `example1(argc, argv)`
  • Loading branch information
s-martin committed Oct 17, 2024
1 parent 13ae1a4 commit 239f489
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/ex1.C
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include <iostream>


int main(int argc, char **argv)
{
std::cout << "Example 1\n\n";
Expand All @@ -37,7 +36,7 @@ int main(int argc, char **argv)
}
}

ex1();
example1(argc, argv);

return 0;
}

0 comments on commit 239f489

Please sign in to comment.