MxatomId: implement inline operator==

This commit is contained in:
Anonymous Maarten 2023-06-29 14:32:07 +02:00
parent e1ccdb9748
commit 54ce350476

View File

@ -1,8 +1,14 @@
#ifndef MXATOMID_H
#define MXATOMID_H
#include "mxtypes.h"
enum LookupMode
{
LookupMode_Exact = 0,
LookupMode_LowerCase = 1,
LookupMode_UpperCase = 2,
LookupMode_LowerCase2 = 3
};
class MxAtomId
@ -17,6 +23,11 @@ class MxAtomId
this->m_internal = 0;
}
inline MxBool operator ==(const MxAtomId &other) const
{
return this->m_internal == other.m_internal;
}
private:
char *m_internal;
};