ManaPlus
Functions
updatetypeoperators.h File Reference

(986a3bf)

#include "enums/net/updatetype.h"

Go to the source code of this file.

Functions

int operator& (const UpdateTypeT &a, const UpdateTypeT &b)
 
int operator| (const UpdateTypeT &a, const UpdateTypeT &b)
 
int operator| (const int &a, const UpdateTypeT &b)
 

Function Documentation

◆ operator&()

int operator& ( const UpdateTypeT a,
const UpdateTypeT b 
)

Definition at line 28 of file updatetypeoperators.cpp.

29 {
30  return CAST_S32(a) & CAST_S32(b);
31 }
#define CAST_S32
Definition: cast.h:30

References CAST_S32.

◆ operator|() [1/2]

int operator| ( const int &  a,
const UpdateTypeT b 
)

Definition at line 38 of file updatetypeoperators.cpp.

39 {
40  return a | CAST_S32(b);
41 }

References CAST_S32.

◆ operator|() [2/2]

int operator| ( const UpdateTypeT a,
const UpdateTypeT b 
)

Definition at line 33 of file updatetypeoperators.cpp.

34 {
35  return CAST_S32(a) | CAST_S32(b);
36 }

References CAST_S32.