Device Monitoring Studio - Monitor, log and analyze data coming through PC ports and connections
Download Device Monitoring Studio Hide this button

$revert_to Directive



This directive updates the current_offset. It may be used to have look ahead in a structure. reference-expression is evaluated at run-time and must be a reference to a field in the current type. After this directive executes, current_offset becomes the start of a field.

struct A
    int type;
    switch (type)
        case 0:
            B b;
        case 1:
            C c;
            D d;