From e475a79b29e679e6378f871f236ba44ec6a4ae12 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Thu, 7 May 2020 13:19:24 +0200 Subject: [PATCH] dimension2d --- src/dimension2d.cpp | 16 ++++++++-------- src/dimension2d.h | 8 ++------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/dimension2d.cpp b/src/dimension2d.cpp index cad023c..03d4fa6 100644 --- a/src/dimension2d.cpp +++ b/src/dimension2d.cpp @@ -23,14 +23,14 @@ #include #include "dimension2d.h" -extern "C" { - irr::core::dimension2d - scm_to_dimension2d_u32 (SCM dimension2d) - { - return irr::core::dimension2d - (scm_to_uint32 (scm_car (dimension2d)), - scm_to_uint32 (scm_cadr (dimension2d))); - } +using namespace irr; + +core::dimension2d +scm_to_dimension2d_u32 (SCM dimension2d) +{ + return core::dimension2d + (scm_to_uint32 (scm_car (dimension2d)), + scm_to_uint32 (scm_cadr (dimension2d))); } diff --git a/src/dimension2d.h b/src/dimension2d.h index 5556e8a..534a905 100644 --- a/src/dimension2d.h +++ b/src/dimension2d.h @@ -25,11 +25,7 @@ #include #include -extern "C" { - - irr::core::dimension2d - scm_to_dimension2d_u32 (SCM dimension2d); - -} +irr::core::dimension2d +scm_to_dimension2d_u32 (SCM dimension2d); #endif -- 2.39.5