An IDC function always returns a value. There are 2 kinds of functions:
Index
| Previous topic
| Next topic
- built-in functions - user-defined functionsA user-defined function is declared this way:
static func(arg1,arg2,arg3) { statements ... }It is not necessary to specify the parameter types because all necessary type conversions are performed automatically.
By default all function arguments are passed by value, except:
- objects are always passed by reference - functions are always passed by reference - it is possible to pass a variable by reference using the & operatorIf the function to call does not exist, IDA tries to resolve the name using the debugged program labels. If it succeeds, an dbg_appcall is performed.