ofen/include/of_def.hpp
2024-11-29 10:42:07 +08:00

28 lines
417 B
C++

#ifndef OFEN_DEFINE
#define OFEN_DEFINE
#include <string>
#ifdef UNICODE_OFSTR
using ofString = std::wstring;
#define ofT(text) L##text
#ifndef UNICODE
#define UNICODE
#endif
#ifndef _UNICODE
#define _UNICODE
#endif
#else
using ofString = std::string;
#define ofT(text) text
#endif
enum OfStatus {
STA_SUCESS = 0,
STA_ERROR,
STA_CANOT_OPEN_REG,
STA_CANOT_QUERY_REG,
STA_CANOT_SET_REG
};
#endif