Skip to content

Commit 6ce35bb

Browse files
authored
Merge pull request #2131 from benegee/bg/main-in-examples-not-in-extern-c
Other: Move `main`s out off `T8_EXTERN_C` region
2 parents 9f94c4e + 9a3389f commit 6ce35bb

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

example/remove/t8_example_empty_trees.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
#include <sc_options.h>
3030
#include <string>
3131

32-
T8_EXTERN_C_BEGIN ();
33-
3432
/** Removes all elements of a local tree if they belong to the corresponding
3533
* global trees which is given by the user_data. */
3634
static int
@@ -162,5 +160,3 @@ main (int argc, char **argv)
162160

163161
return 0;
164162
}
165-
166-
T8_EXTERN_C_END ();

example/remove/t8_example_gauss_blob.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include <t8_schemes/t8_default/t8_default.hxx>
2828
#include <sc_options.h>
2929

30-
T8_EXTERN_C_BEGIN ();
31-
3230
struct t8_adapt_data
3331
{
3432
const int remove_scope;
@@ -256,5 +254,3 @@ main (int argc, char **argv)
256254

257255
return 0;
258256
}
259-
260-
T8_EXTERN_C_END ();

example/remove/t8_example_spheres.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include <t8_schemes/t8_default/t8_default.hxx>
2828
#include <sc_options.h>
2929

30-
T8_EXTERN_C_BEGIN ();
31-
3230
struct t8_adapt_data
3331
{
3432
const int num_spheres;
@@ -206,5 +204,3 @@ main (int argc, char **argv)
206204

207205
return 0;
208206
}
209-
210-
T8_EXTERN_C_END ();

0 commit comments

Comments
 (0)