Skip to content

Commit

Permalink
Forgot to update TestExportHeaders :)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Oct 29, 2023
1 parent 8552910 commit 07be562
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions CPP/Tests/TestExportHeaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ TEST(Clipper2Tests, ExportHeader64)
// Normally clipper.export.h will be compiled into a DLL/so so it can be called
// by non C++ applications. If CreateCPaths64 was an exported function and it
// was called by a non C++ application, it would crash that application.
CPaths64 c_subj = CreateCPaths64(subj);
CPaths64 c_clip = CreateCPaths64(clip);
CPaths64 c_subj = CreateCPaths(subj);
CPaths64 c_clip = CreateCPaths(clip);

BooleanOp64(Intersection, EvenOdd, c_subj, c_subj_open, c_clip, c_sol, c_sol_open);
solution = ConvertCPaths64(c_sol);
solution = ConvertCPaths(c_sol);

//clean up !!!
delete[] c_subj;
Expand Down Expand Up @@ -116,11 +116,11 @@ TEST(Clipper2Tests, ExportHeaderD)
// Normally clipper.export.h will be compiled into a DLL/so so it can be called
// by non C++ applications. If CreateCPathsD was an exported function and it
// was called by a non C++ application, it would crash that application.
CPathsD c_subj = CreateCPathsD(subj);
CPathsD c_clip = CreateCPathsD(clip);
CPathsD c_subj = CreateCPaths(subj);
CPathsD c_clip = CreateCPaths(clip);

BooleanOpD(Intersection, EvenOdd, c_subj, c_subj_open, c_clip, c_sol, c_sol_open);
solution = ConvertCPathsD(c_sol);
solution = ConvertCPaths(c_sol);

//clean up !!!
delete[] c_subj;
Expand All @@ -147,8 +147,8 @@ TEST(Clipper2Tests, ExportHeaderTree64)
// More likely, clipper.export.h will be compiled into a DLL/so so it can be
// called by non C++ applications. If CreateCPaths64 was an exported function
// and it was called by a non C++ application, it would crash that application.
CPaths64 c_subj = CreateCPaths64(subj);
CPaths64 c_clip = CreateCPaths64(clip);
CPaths64 c_subj = CreateCPaths(subj);
CPaths64 c_clip = CreateCPaths(clip);

int64_t* c_sol_tree = nullptr;
BooleanOp_PolyTree64(Intersection, EvenOdd, c_subj, c_subj_open, c_clip, c_sol_tree, c_sol_open);
Expand Down Expand Up @@ -192,8 +192,8 @@ TEST(Clipper2Tests, ExportHeaderTreeD)
// More likely, clipper.export.h will be compiled into a DLL/so so it can be
// called by non C++ applications. If CreateCPathsD was an exported function
// and it was called by a non C++ application, it would crash that application.
CPathsD c_subj = CreateCPathsD(subj);
CPathsD c_clip = CreateCPathsD(clip);
CPathsD c_subj = CreateCPaths(subj);
CPathsD c_clip = CreateCPaths(clip);


static const int precision = 4;
Expand Down

0 comments on commit 07be562

Please sign in to comment.