ofen/include/of_def.hpp

32 lines
520 B
C++
Raw Normal View History

#ifndef OFEN_DEFINE
#define OFEN_DEFINE
#include <string>
2025-02-13 16:28:55 +08:00
#include <vector>
#ifdef UNICODE_OFSTR
using ofString = std::wstring;
2024-11-29 10:53:51 +08:00
using ofChar = wchar_t;
#define ofT(text) L##text
2024-11-29 10:42:07 +08:00
#ifndef UNICODE
#define UNICODE
#endif
#ifndef _UNICODE
#define _UNICODE
#endif
#else
using ofString = std::string;
2024-11-29 10:53:51 +08:00
using ofChar = char;
#define ofT(text) text
#endif
2025-02-13 16:28:55 +08:00
using ofStrVec = std::vector<ofString>;
enum OfStatus {
STA_SUCESS = 0,
STA_ERROR,
STA_CANOT_OPEN_REG,
STA_CANOT_QUERY_REG,
STA_CANOT_SET_REG
};
#endif