7zip/CPP/Common/MyTypes.h

39 lines
482 B
C
Raw Normal View History

2021-12-27 01:00:00 +01:00
// Common/MyTypes.h
2023-06-21 02:00:00 +02:00
#ifndef ZIP7_INC_COMMON_MY_TYPES_H
#define ZIP7_INC_COMMON_MY_TYPES_H
2021-12-27 01:00:00 +01:00
2024-05-14 02:00:00 +02:00
#include "Common0.h"
2021-12-27 01:00:00 +01:00
#include "../../C/7zTypes.h"
2024-05-14 02:00:00 +02:00
// typedef int HRes;
// typedef HRESULT HRes;
2021-12-27 01:00:00 +01:00
struct CBoolPair
{
bool Val;
bool Def;
CBoolPair(): Val(false), Def(false) {}
void Init()
{
Val = false;
Def = false;
}
void SetTrueTrue()
{
Val = true;
Def = true;
}
void SetVal_as_Defined(bool val)
{
Val = val;
Def = true;
}
};
#endif