39 lines
467 B
C
39 lines
467 B
C
// Common/MyTypes.h
|
|
|
|
#ifndef __COMMON_MY_TYPES_H
|
|
#define __COMMON_MY_TYPES_H
|
|
|
|
#include "../../C/7zTypes.h"
|
|
|
|
typedef int HRes;
|
|
|
|
#ifdef __cplusplus
|
|
struct CBoolPair
|
|
{
|
|
bool Val;
|
|
bool Def;
|
|
|
|
CBoolPair(): Val(false), Def(false) {}
|
|
|
|
void Init()
|
|
{
|
|
Val = false;
|
|
Def = false;
|
|
}
|
|
|
|
void SetTrueTrue()
|
|
{
|
|
Val = true;
|
|
Def = true;
|
|
}
|
|
};
|
|
|
|
#define CLASS_NO_COPY(cls) \
|
|
private: \
|
|
cls(const cls &); \
|
|
cls &operator=(const cls &);
|
|
|
|
#endif
|
|
|
|
#endif
|