From: fennecdjay Date: Wed, 9 Oct 2019 19:45:12 +0000 (+0200) Subject: :art: Use loc in import X-Git-Tag: nightly~2198^2~68 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=125c84f49e56baef5694598d91abc0427b8f032f;p=gwion.git :art: Use loc in import --- 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