My script file:
void testRef( int &in ref )
{
int localVar = ref;
}
int main()
{
int valForRef = 5;
testRef( valForRef );
return 0;
}
I'm stepping 3 times, so in debug console I can see:
test.as:3; void testRef(int&in)
The result after typing command "p ref" to print the value:
[dbg]> p ref
6697168
It prints out the pointer instead of the actual value (5 in this test scenario).
This test was performed on the latest revision of the AngelScript, with slight modification with the GetFunctionIdByDecl() call in main.cpp which is no longer available in the AngelScript interface.
Thanks in advance!