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) {