From a3bf14776866b5af7fad11c7066de63814072d66 Mon Sep 17 00:00:00 2001 From: Kp Date: Mon, 28 Jun 2021 03:37:50 +0000 Subject: [PATCH] Move create_vertex_list_from_invalid_side to dcx --- similar/main/gameseg.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/similar/main/gameseg.cpp b/similar/main/gameseg.cpp index f0502b51e..8da5735df 100644 --- a/similar/main/gameseg.cpp +++ b/similar/main/gameseg.cpp @@ -126,6 +126,14 @@ static void compute_segment_center(fvcvertptr &vcvertptr, vms_vector &r, const s vm_vec_add2(vp, vcvertptr(v)); vm_vec_copy_scale(r, vp, F1_0 / 8); } + +__attribute_cold +[[noreturn]] +static void create_vertex_list_from_invalid_side(const shared_segment &segp, const shared_side &sidep) +{ + throw shared_side::illegal_type(segp, sidep); +} + } // ------------------------------------------------------------------------------------------ @@ -190,13 +198,6 @@ void get_side_verts(side_vertnum_list_t &vertlist, const shared_segment &segp, c namespace dsx { namespace { -__attribute_cold -__noreturn -static void create_vertex_list_from_invalid_side(const shared_segment &segp, const shared_side &sidep) -{ - throw shared_side::illegal_type(segp, sidep); -} - template static uint_fast32_t create_vertex_lists_from_values(T &va, const shared_segment &segp, const shared_side &sidep, const V &&f0, const V &&f1, const V &&f2, const V &&f3) {