1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 10:14:57 +00:00

LibDebug: Add support for parsing array types

This includes multi-dimensional arrays :O
This commit is contained in:
FalseHonesty 2021-04-13 22:08:24 -04:00 committed by Andreas Kling
parent acbb119b27
commit 2d58549296
3 changed files with 65 additions and 34 deletions

View file

@ -23,6 +23,8 @@ int main(int, char**)
MyStruct my_struct;
my_struct.status = !my_struct.status;
printf("my_struct.x is %d\n", my_struct.x);
int arr[6] = { -1, 2, 20, 5, 5 };
int other_arr[1][2] = { { 0, 2 } };
Container container;
for (int i = 0; i < 3; ++i) {
// This is a comment :^)