@@ -1387,6 +1387,43 @@ switch (type)
13871387[Core.Hooking] <Info> gt7_hooks.cpp:193 DumpSubroutine: LEAVE
13881388[Core.Hooking] <Info> gt7_hooks.cpp:130 DumpSubroutine: SET_STATE: EXIT
13891389
1390+ // Case + default
1391+ switch (value)
1392+ {
1393+ case 0:
1394+ default:
1395+ test("hello world from case 0 and default");
1396+ break;
1397+
1398+ case 1:
1399+ test("hello world from case 1");
1400+ break;
1401+ }
1402+ [Core.Hooking] <Info> gt7_hooks.cpp:80 DumpSubroutine: VARIABLE_EVAL: value,value
1403+ [Core.Hooking] <Info> gt7_hooks.cpp:85 DumpSubroutine: VARIABLE_PUSH: case#0
1404+ [Core.Hooking] <Info> gt7_hooks.cpp:212 DumpSubroutine: ASSIGN_POP
1405+ [Core.Hooking] <Info> gt7_hooks.cpp:80 DumpSubroutine: VARIABLE_EVAL: case#0
1406+ [Core.Hooking] <Info> gt7_hooks.cpp:99 DumpSubroutine: INT_CONST: 0
1407+ [Core.Hooking] <Info> gt7_hooks.cpp:212 DumpSubroutine: BINARY_OPERATOR
1408+ [Core.Hooking] <Info> gt7_hooks.cpp:111 DumpSubroutine: JUMP_IF_TRUE: 12
1409+ [Core.Hooking] <Info> gt7_hooks.cpp:80 DumpSubroutine: VARIABLE_EVAL: case#0
1410+ [Core.Hooking] <Info> gt7_hooks.cpp:99 DumpSubroutine: INT_CONST: 1
1411+ [Core.Hooking] <Info> gt7_hooks.cpp:212 DumpSubroutine: BINARY_OPERATOR
1412+ [Core.Hooking] <Info> gt7_hooks.cpp:111 DumpSubroutine: JUMP_IF_TRUE: 17
1413+ [Core.Hooking] <Info> gt7_hooks.cpp:120 DumpSubroutine: JUMP: 12
1414+ [Core.Hooking] <Info> gt7_hooks.cpp:80 DumpSubroutine: VARIABLE_EVAL: test,test
1415+ [Core.Hooking] <Info> gt7_hooks.cpp:159 DumpSubroutine: STRING_CONST: "hello world from case 0 and default"
1416+ [Core.Hooking] <Info> gt7_hooks.cpp:128 DumpSubroutine: CALL: 1 args
1417+ [Core.Hooking] <Info> gt7_hooks.cpp:212 DumpSubroutine: POP
1418+ [Core.Hooking] <Info> gt7_hooks.cpp:120 DumpSubroutine: JUMP: 22
1419+ [Core.Hooking] <Info> gt7_hooks.cpp:80 DumpSubroutine: VARIABLE_EVAL: test,test
1420+ [Core.Hooking] <Info> gt7_hooks.cpp:159 DumpSubroutine: STRING_CONST: "hello world from case 1"
1421+ [Core.Hooking] <Info> gt7_hooks.cpp:128 DumpSubroutine: CALL: 1 args
1422+ [Core.Hooking] <Info> gt7_hooks.cpp:212 DumpSubroutine: POP
1423+ [Core.Hooking] <Info> gt7_hooks.cpp:120 DumpSubroutine: JUMP: 22
1424+ [Core.Hooking] <Info> gt7_hooks.cpp:212 DumpSubroutine: LEAVE
1425+ [Core.Hooking] <Info> gt7_hooks.cpp:133 DumpSubroutine: SET_STATE: EXIT
1426+
13901427////////////////////////////////////////////////////////////////////////
13911428// Ternary tests
13921429////////////////////////////////////////////////////////////////////////
0 commit comments