Skip to content

Can Code Virtualizer macros protect switch statements and try-except blocks?

Yes. Place VIRTUALIZER_START before the complete switch/case statement or try/except block, and place VIRTUALIZER_END after it.

VIRTUALIZER_START

try
{
    // your code
}
except
{
    // your code
}

VIRTUALIZER_END