From aa407ca14f6a99c5a953ff564461ec8dac1e0a84 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Mon, 31 Aug 2020 17:53:02 +0800 Subject: allow redefining an existing type --- binaryninjaapi.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 692cbebf..99d74b16 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1659,9 +1659,11 @@ __attribute__ ((format (printf, 1, 2))) uint64_t GetPreviousDataBeforeAddress(uint64_t addr); uint64_t GetPreviousDataVariableStartBeforeAddress(uint64_t addr); - bool ParseTypeString(const std::string& text, QualifiedNameAndType& result, std::string& errors); + bool ParseTypeString(const std::string& text, QualifiedNameAndType& result, std::string& errors, + const std::set& typesAllowRedefinition = {}); bool ParseTypeString(const std::string& text, std::map>& types, - std::map>& variables, std::map>& functions, std::string& errors); + std::map>& variables, std::map>& functions, std::string& errors, + const std::set& typesAllowRedefinition = {}); std::map> GetTypes(); std::vector GetTypeNames(const std::string& matching=""); -- cgit v1.3.1