sourcepawn/include/sp_vm_api.h
changeset 69 e23e2b0a2d7e
parent 67 2fae86728e54
child 93 b00ab8fec541
     1.1 --- a/sourcepawn/include/sp_vm_api.h	Wed Sep 20 00:41:24 2006 +0000
     1.2 +++ b/sourcepawn/include/sp_vm_api.h	Wed Sep 20 01:59:56 2006 +0000
     1.3 @@ -74,7 +74,11 @@
     1.4  		virtual void BaseFree(void *memory) =0;
     1.5  	};
     1.6  
     1.7 -	class ICompilation;
     1.8 +	class ICompilation
     1.9 +	{
    1.10 +	public:
    1.11 +		virtual ~ICompilation() { };
    1.12 +	};
    1.13  
    1.14  	class IVirtualMachine
    1.15  	{
    1.16 @@ -107,9 +111,17 @@
    1.17  		 * Note: This will free the ICompilation pointer.
    1.18  		 *
    1.19  		 * @param co		Compilation pointer.
    1.20 +		 * @param err		Filled with error code on exit.
    1.21  		 * @return			New plugin context.
    1.22  		 */
    1.23 -		virtual IPluginContext *CompileToContext(ICompilation *co) =0;
    1.24 +		virtual IPluginContext *CompileToContext(ICompilation *co, int *err) =0;
    1.25 +
    1.26 +		/**
    1.27 +		 * Aborts a compilation and frees the ICompilation pointer.
    1.28 +		 *
    1.29 +		 * @param co		Compilation pointer.
    1.30 +		 */
    1.31 +		virtual void AbortCompilation(ICompilation *co) =0;
    1.32  
    1.33  		/**
    1.34  		 * Frees any internal variable usage on a context.