1.1 --- a/core/vm/sp_vm_basecontext.h Tue Jan 02 02:59:49 2007 +0000
1.2 +++ b/core/vm/sp_vm_basecontext.h Thu Jan 04 02:08:27 2007 +0000
1.3 @@ -44,6 +44,10 @@
1.4 virtual int Execute(funcid_t funcid, cell_t *result);
1.5 virtual void ThrowNativeErrorEx(int error, const char *msg, ...);
1.6 virtual cell_t ThrowNativeError(const char *msg, ...);
1.7 +#if defined SOURCEMOD_BUILD
1.8 + virtual SourceMod::IdentityToken_t *GetIdentity();
1.9 + void SetIdentity(SourceMod::IdentityToken_t *token);
1.10 +#endif
1.11 public: //IPluginDebugInfo
1.12 virtual int LookupFile(ucell_t addr, const char **filename);
1.13 virtual int LookupFunction(ucell_t addr, const char **name);
1.14 @@ -52,6 +56,9 @@
1.15 void SetErrorMessage(const char *msg, va_list ap);
1.16 private:
1.17 sp_context_t *ctx;
1.18 +#if defined SOURCEMOD_BUILD
1.19 + SourceMod::IdentityToken_t *m_pToken;
1.20 +#endif
1.21 char m_MsgCache[1024];
1.22 bool m_CustomMsg;
1.23 bool m_InExec;