-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User Story 1556891: [MIEngine Natvis] Support multi-dimensional arrays (
#1346) Support multi-dimensional arrays
- Loading branch information
gc46
authored
Sep 9, 2022
1 parent
c594534
commit 7983eaa
Showing
5 changed files
with
129 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
class SimpleMatrix | ||
{ | ||
public: | ||
int m_size1; | ||
int m_size2; | ||
bool m_fUseSize1; | ||
int* m_pData; | ||
|
||
SimpleMatrix(int size1, int size2, bool fUseSize1) | ||
{ | ||
m_size1 = size1; | ||
m_size2 = size2; | ||
m_fUseSize1 = fUseSize1; | ||
|
||
m_pData = new int[GetSize()]; | ||
|
||
for (int i = 0; i < GetSize(); i++) | ||
{ | ||
m_pData[i] = i; | ||
} | ||
} | ||
|
||
int GetSize() | ||
{ | ||
return m_fUseSize1 ? m_size1 : m_size2; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters