From 6e06694f2fdda33eb3237fe1a3aa7f6df94ad61c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 21 Dec 2015 14:52:52 +0000 Subject: - more effective binary search of MUUIDs; - fix to prevent a loop creation if one forgets about UNSET_UID; git-svn-id: http://svn.miranda-ng.org/main/trunk@15926 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/newpluginapi.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/newpluginapi.h b/include/newpluginapi.h index e02d454caf..1226df7ccc 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -49,6 +49,13 @@ struct MUUID unsigned char d[8]; }; +__forceinline bool operator==(const MUUID &p1, const MUUID &p2) +{ return memcmp(&p1, &p2, sizeof(MUUID)) == 0; +} +__forceinline bool operator!=(const MUUID &p1, const MUUID &p2) +{ return memcmp(&p1, &p2, sizeof(MUUID)) != 0; +} + MIR_APP_DLL(int) GetPluginLangId(const MUUID &uuid, int hLangpack); MIR_APP_DLL(int) IsPluginLoaded(const MUUID &uuid); -- cgit v1.2.3