Skip to content

Commit 58fda6e

Browse files
committed
继续兼容
1 parent c49a73e commit 58fda6e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

LuaParser/src/LuaParser.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,12 @@ bool LuaParser::IsEmptyLine(int line)
107107
void LuaParser::SetFilename(std::string_view filename)
108108
{
109109
std::filesystem::path path(filename);
110-
110+
#ifdef NOT_SURPPORT_FILE_SYSTEM
111+
_file->SetFilename(path.string());
112+
#else
111113
_file->SetFilename(path.replace_extension().string());
114+
#endif
115+
112116
}
113117

114118
std::string_view LuaParser::GetFilename()

include/LuaParser/LuaAstNode/LuaAstNode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class LuaAstNode: public std::enable_shared_from_this<LuaAstNode>
2121

2222
LuaAstNode(LuaAstNodeType type, LuaToken& token);
2323

24-
~LuaAstNode();
24+
virtual ~LuaAstNode();
2525

2626
std::shared_ptr<LuaAstNode> Copy();
2727

0 commit comments

Comments
 (0)