File diff r12086:61fea38abb90 → r12087:0095f1069b29
src/script/squirrel.hpp
Show inline comments
 
@@ -192,27 +192,32 @@ public:
 
	 * Release a SQ object.
 
	 */
 
	void ReleaseObject(HSQOBJECT *ptr) { sq_release(this->vm, ptr); }
 

	
 
	/**
 
	 * Tell the VM to remove \c amount ops from the number of ops till suspend.
 
	 */
 
	static void DecreaseOps(HSQUIRRELVM vm, int amount);
 

	
 
	/**
 
	 * Did the squirrel code suspend or return normally.
 
	 * @return True if the function suspended.
 
	 */
 
	bool IsSuspended();
 

	
 
	/**
 
	 * Find out if the squirrel script made an error before.
 
	 */
 
	bool HasScriptCrashed();
 

	
 
	/**
 
	 * Reset the crashed status.
 
	 */
 
	void ResetCrashed();
 

	
 
	/**
 
	 * Are we allowed to suspend the squirrel script at this moment?
 
	 */
 
	bool CanSuspend();
 
};
 

	
 
#endif /* SQUIRREL_HPP */