mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
tests: Added bitfield test
This commit is contained in:
@@ -28,8 +28,8 @@ namespace hex::test {
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static T* create(u64 offset, size_t size, const std::string &typeName, const std::string &varName) {
|
||||
auto pattern = new T(offset, size);
|
||||
static T* create(const std::string &typeName, const std::string &varName, auto ... args) {
|
||||
auto pattern = new T(args...);
|
||||
pattern->setTypeName(typeName);
|
||||
pattern->setVariableName(varName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user