File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
include/LuaParser/LuaAstNode Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,12 @@ bool LuaParser::IsEmptyLine(int line)
107107void 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
114118std::string_view LuaParser::GetFilename ()
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments