sourcepawn/jit/engine2.h
changeset 4116 3e58428d988f
parent 4013 6201c1180e0e
     1.1 --- a/sourcepawn/jit/engine2.h	Sat Aug 31 19:50:36 2013 -0700
     1.2 +++ b/sourcepawn/jit/engine2.h	Sun Sep 01 00:23:44 2013 -0700
     1.3 @@ -1,3 +1,4 @@
     1.4 +// vim: set ts=4 sw=4 tw=99 noet:
     1.5  #ifndef _INCLUDE_SOURCEPAWN_ENGINE_2_H_
     1.6  #define _INCLUDE_SOURCEPAWN_ENGINE_2_H_
     1.7  
     1.8 @@ -27,10 +28,20 @@
     1.9  		void Shutdown();
    1.10  		IPluginRuntime *CreateEmptyRuntime(const char *name, uint32_t memory);
    1.11  		bool InstallWatchdogTimer(size_t timeout_ms);
    1.12 +
    1.13 +		bool SetJitEnabled(bool enabled) {
    1.14 +			jit_enabled_ = enabled;
    1.15 +			return true;
    1.16 +	    }
    1.17 +
    1.18 +		bool IsJitEnabled() {
    1.19 +			return jit_enabled_;
    1.20 +		}
    1.21  	public:
    1.22  		IProfiler *GetProfiler();
    1.23  	private:
    1.24  		IProfiler *m_Profiler;
    1.25 +		bool jit_enabled_;
    1.26  	};
    1.27  }
    1.28