From 39f90602240dc3f07efe3618587b6f56a3667d33 Mon Sep 17 00:00:00 2001 From: dzaima Date: Mon, 24 May 2021 00:35:35 +0300 Subject: [PATCH] extern bi_ --- src/h.h | 6 +++--- src/load.c | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/h.h b/src/h.h index 31cfd000..a087f962 100644 --- a/src/h.h +++ b/src/h.h @@ -199,13 +199,13 @@ static char* format_pm2(u8 u) { } } -#define F(N,X) B bi_##N; +#define F(N,X) extern B bi_##N; FOR_PFN(F) #undef F -#define F(N,X) B bi_##N; +#define F(N,X) extern B bi_##N; FOR_PM1(F) #undef F -#define F(N,X) B bi_##N; +#define F(N,X) extern B bi_##N; FOR_PM2(F) #undef F diff --git a/src/load.c b/src/load.c index 7d920afd..31713e91 100644 --- a/src/load.c +++ b/src/load.c @@ -2,6 +2,17 @@ #include "vm.h" #include "utils/file.h" + +#define F(N,X) B bi_##N; +FOR_PFN(F) +#undef F +#define F(N,X) B bi_##N; +FOR_PM1(F) +#undef F +#define F(N,X) B bi_##N; +FOR_PM2(F) +#undef F + B rtPerf_wrap(B x); // consumes _Thread_local B comp_currPath;