- 重命名和重构了多个文件,包括 lexer、parser 和 AST 相关代码 - 添加了日志功能,使用 LOG_* 宏替代原有的 error 和 warn 函数 - 优化了错误处理和内存分配方式 - 调整了代码结构,提高了模块化和可读性
19 lines
339 B
C
19 lines
339 B
C
#ifndef __SMCC_RT_H__
|
|
#define __SMCC_RT_H__
|
|
|
|
#include "std/rt_api_def.h"
|
|
#include "std/rt_type.h"
|
|
#include "log/log.h"
|
|
#include "rt_alloc.h"
|
|
#include "rt_string.h"
|
|
|
|
void init_rt();
|
|
|
|
// define
|
|
#define _SMCC_STR(str) #str
|
|
#define SMCC_STR(str) _SMCC_STR(str)
|
|
|
|
#define SMCC_ARRLEN(arr) (sizeof(arr) / sizeof(arr[0]))
|
|
|
|
#endif // __SMCC_RT_H__
|