/***************************************************************************************************12Zyan Disassembler Library (Zydis)34Original Author : Florian Bernd56* Permission is hereby granted, free of charge, to any person obtaining a copy7* of this software and associated documentation files (the "Software"), to deal8* in the Software without restriction, including without limitation the rights9* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell10* copies of the Software, and to permit persons to whom the Software is11* furnished to do so, subject to the following conditions:12*13* The above copyright notice and this permission notice shall be included in all14* copies or substantial portions of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR17* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,18* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE19* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER20* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,21* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE22* SOFTWARE.2324***************************************************************************************************/2526#include <Zydis/MetaInfo.h>27#include <Zycore/Types.h>2829/* ============================================================================================== */30/* Enum strings */31/* ============================================================================================== */3233#include <Generated/EnumInstructionCategory.inc>34#include <Generated/EnumISASet.inc>35#include <Generated/EnumISAExt.inc>3637/* ============================================================================================== */38/* Exported functions */39/* ============================================================================================== */4041const char* ZydisCategoryGetString(ZydisInstructionCategory category)42{43if ((ZyanUSize)category >= ZYAN_ARRAY_LENGTH(STR_INSTRUCTIONCATEGORY))44{45return ZYAN_NULL;46}47return STR_INSTRUCTIONCATEGORY[category];48}4950const char* ZydisISASetGetString(ZydisISASet isa_set)51{52if ((ZyanUSize)isa_set >= ZYAN_ARRAY_LENGTH(STR_ISASET))53{54return ZYAN_NULL;55}56return STR_ISASET[isa_set];57}5859const char* ZydisISAExtGetString(ZydisISAExt isa_ext)60{61if ((ZyanUSize)isa_ext >= ZYAN_ARRAY_LENGTH(STR_ISAEXT))62{63return ZYAN_NULL;64}65return STR_ISAEXT[isa_ext];66}6768/* ============================================================================================== */697071