MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / executeFile

Method executeFile

src/LuaState.cpp:164–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void LuaState::executeFile(const QString &fileName)
165{
166 QFile ff(fileName);
167
168 if (!ff.open(QFile::ReadOnly)) {
169 qFatal("Cannot execute file: %s", fileName.toLatin1().constData());
170 }
171
172 internal_execute(ff.readAll().constData(), true);
173
174 ff.close();
175}
176
177void LuaState::clearStack()
178{

Callers 1

initMethod · 0.80

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected