From 125c84f49e56baef5694598d91abc0427b8f032f Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 9 Oct 2019 21:45:12 +0200 Subject: [PATCH] :art: Use loc in import --- include/import.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/import.h b/include/import.h index ffc9992f..7b7f282d 100644 --- a/include/import.h +++ b/include/import.h @@ -21,8 +21,8 @@ typedef struct Gwi_* Gwi; #define GWI_OB(a) { gwi_set_loc(gwi, __FILE__, __LINE__); (void)(a); } #define GWION_IMPORT(a) ANN m_bool import_##a(const Gwi gwi) #else -#define GWI_BB(a) { gwi_set_loc(gwi, __FILE__, __LINE__); CHECK_BB(a) } -#define GWI_OB(a) { gwi_set_loc(gwi, __FILE__, __LINE__); CHECK_OB(a) } +#define GWI_BB(a) { gwi_set_loc(gwi, (m_str)__FILE__, __LINE__); CHECK_BB(a) } +#define GWI_OB(a) { gwi_set_loc(gwi, (m_str)__FILE__, __LINE__); CHECK_OB(a) } #define GWION_IMPORT(a) ANN m_bool import(const Gwi gwi) #endif #define ALLOC_PTR(p, a, b, c) b* a = (b*)_mp_calloc(p, sizeof(b)); *a = (b)c -- 2.43.0