Please enable JavaScript to view this site.

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(...).

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC