What does the "&" and "self" mean? when is it part of a function declaration?
I am not familiar with that syntax.
I could not get what it does after "&"
or when using self. xxxx. because without self this should work
Example:
example.c
classname::functionName(classname & self)
{
self.m_state.mode.IsOnline = true;
}
example.h
static functionName(classname & self);
class classname & _classname ;
{
struct _MODE
{
bool IsOnline;
} MODE;
} m_state;
This is c++
Regards