From fcbf903223cfdb1004e12db589531e15ccdb635f Mon Sep 17 00:00:00 2001 From: lyon Date: Fri, 31 Dec 2021 00:23:11 +0800 Subject: [PATCH] change __instruction_table to .cfg --- src/PikaPlatform.h | 1 + src/PikaVM.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/PikaPlatform.h b/src/PikaPlatform.h index 76f88ffe5..7f4372911 100644 --- a/src/PikaPlatform.h +++ b/src/PikaPlatform.h @@ -28,6 +28,7 @@ /* micro pika configuration */ #include "./pikaConfigValid.h" +#define __VM_DEBUG__ #ifndef __PIKA_PALTFORM__H #define __PIKA_PALTFORM__H #include diff --git a/src/PikaVM.c b/src/PikaVM.c index c2711cf45..763f1586d 100644 --- a/src/PikaVM.c +++ b/src/PikaVM.c @@ -60,7 +60,7 @@ static int32_t getLineSize(char* str) { enum Instruct { #define __INS_ENUM - #include "__instruction_table.h" + #include "__instruction_table.cfg" __INSTRCUTION_CNT, }; @@ -492,13 +492,13 @@ static Arg* VM_instruction_handler_CTN(PikaObj* self, } #else # define __INS_IMPL -# include "__instruction_table.h" +# include "__instruction_table.cfg" #endif const VM_instruct_handler VM_instruct_handler_table[__INSTRCUTION_CNT] = { #define __INS_TABLE - #include "__instruction_table.h" + #include "__instruction_table.cfg" }; static char* strs_getLine(Args* buffs, char* code) {