* Check if a script is loaded in an engine. If returning true it means that * the engine is actively executing a script. * * @param script The script engine to check on. * @return Returns true if and only if the script engine is actively executing a script. */
| 296 | * @return Returns true if and only if the script engine is actively executing a script. |
| 297 | */ |
| 298 | bool Script_IsLoaded(ScriptEngine *script) |
| 299 | { |
| 300 | if (script == NULL) return false; |
| 301 | if (script->script == NULL) return false; |
| 302 | if (script->scriptInfo == NULL) return false; |
| 303 | |
| 304 | return true; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Run the next opcode of a script. |
no outgoing calls
no test coverage detected