change __instruction_table to .cfg

This commit is contained in:
lyon 2021-12-31 00:23:11 +08:00
parent 4428763042
commit fcbf903223
2 changed files with 4 additions and 3 deletions

View File

@ -28,6 +28,7 @@
/* micro pika configuration */
#include "./pikaConfigValid.h"
#define __VM_DEBUG__
#ifndef __PIKA_PALTFORM__H
#define __PIKA_PALTFORM__H
#include <stdarg.h>

View File

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