sourcepawn/include/sp_vm_api.h
changeset 245 05d2979e0738
parent 239 cd48418120ba
child 253 881b1fbcc698
     1.1 --- a/sourcepawn/include/sp_vm_api.h	Mon Jan 01 03:39:53 2007 +0000
     1.2 +++ b/sourcepawn/include/sp_vm_api.h	Mon Jan 01 03:40:17 2007 +0000
     1.3 @@ -349,6 +349,7 @@
     1.4  	 */
     1.5  	class IContextTrace
     1.6  	{
     1.7 +	public:
     1.8  		/**
     1.9  		 * @brief Returns the integer error code.
    1.10  		 *
    1.11 @@ -391,6 +392,15 @@
    1.12  		 * @brief Resets the trace to its original position (the call on the top of the stack).
    1.13  		 */
    1.14  		virtual void ResetTrace() =0;
    1.15 +
    1.16 +		/**
    1.17 +		 * @brief Retrieves the name of the last native called.
    1.18 +		 * Returns NULL if there was no native that caused the error.
    1.19 +		 *
    1.20 +		 * @param index		Opterional pointer to store index.
    1.21 +		 * @return			Native name, or NULL if none.
    1.22 +		 */
    1.23 +		virtual const char *GetLastNative(uint32_t *index) =0;
    1.24  	};
    1.25  
    1.26  
    1.27 @@ -484,7 +494,10 @@
    1.28  		virtual void ExecFree(void *address) =0;
    1.29  
    1.30  		/**
    1.31 -		 * @brief Sets the debug listener. 
    1.32 +		 * @brief Sets the debug listener.  This should only be called once.
    1.33 +		 * If called successively (using manual chaining), only the last function should
    1.34 +		 * attempt to call back into the same plugin.  Otherwise, globally cached states
    1.35 +		 * can be accidentally overwritten.
    1.36  		 *
    1.37  		 * @param listener	Pointer to an IDebugListener.
    1.38  		 * @return			Old IDebugListener, or NULL if none.