Function that returns the index of the resource passed as an argument.
The function is able to distinguish associations to:
r(index), rr(index), sr(index), nvr(index), nvrr(index), nvsr(index), inp(index), out(index), inp_w(index), out_w(index).
Syntax |
i32 index_of (define) |
---|---|
define |
Is the symbolic associated with the variable |
Result |
Returns the index of the passed argument |
Validity |
Rule, Task |
Note |
The function is actually a compiler macro which, having an argument r/rr/sr/nvr/nvsr/inp/out/inp_w/out_w(index), returns compilation-time <index> instead of index_of(...).
Example of use:
|