| 162 | } |
| 163 | |
| 164 | void 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 | |
| 177 | void LuaState::clearStack() |
| 178 | { |