mirror of
https://github.com/vtil-project/VTIL-Core
synced 2026-08-17 08:23:03 -04:00
Merge pull request #51 from mrexodia/register_desc
Add implicit conversion from enum in register_desc
This commit is contained in:
commit
eeffb26b8b
3 changed files with 5 additions and 2 deletions
2
Dependencies/capstone/CMakeLists.txt
vendored
2
Dependencies/capstone/CMakeLists.txt
vendored
|
|
@ -12,7 +12,7 @@ FetchContent_Declare(
|
|||
capstone
|
||||
GIT_REPOSITORY https://github.com/aquynh/capstone
|
||||
GIT_TAG d71c95b09b1fa478c0ab9294b07fd6f2efaa1b31
|
||||
GIT_SHALLOW true
|
||||
GIT_SHALLOW false
|
||||
)
|
||||
FetchContent_MakeAvailable(capstone)
|
||||
|
||||
|
|
|
|||
2
Dependencies/keystone/CMakeLists.txt
vendored
2
Dependencies/keystone/CMakeLists.txt
vendored
|
|
@ -3,7 +3,7 @@ FetchContent_Declare(
|
|||
keystone
|
||||
GIT_REPOSITORY https://github.com/keystone-engine/keystone
|
||||
GIT_TAG e1547852d9accb9460573eb156fc81645b8e1871
|
||||
GIT_SHALLOW true
|
||||
GIT_SHALLOW false
|
||||
)
|
||||
|
||||
FetchContent_GetProperties(keystone)
|
||||
|
|
|
|||
|
|
@ -166,6 +166,9 @@ namespace vtil
|
|||
is_valid( true );
|
||||
}
|
||||
|
||||
template<Enum T>
|
||||
register_desc( T v ) : register_desc( register_cast<T>()( v ) ) { }
|
||||
|
||||
// Returns whether the descriptor is valid or not.
|
||||
//
|
||||
constexpr bool is_valid( bool force = false ) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue