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

$bind Directive

Syntax:

$bind(type-string-expr, var-string-expr, addr-expr);          

All expressions are evaluated at run time. First two are automatically converted to strings, while the third is expected to be of integer type.

This directive instructs parser to bind another structure to a given address. Binding is delayed until the current structure binding is successfully finished.

NOTE

You must reference the full type name, for example struct MyStruct, not the MyStruct, and the referenced type must have been declared as public.

public struct B
{
// …
};

public struct A
{
    int Offset;
    if (Offset != 0)
        $bind("struct B","pB",Offset);
};