I'm trying to use FrameScript_GetTop to get values returned from functions, as an alternative to FrameScript__GetLocalizedText, to see if it's faster, however it doesn't seem to work properly. Here's how it use it:
Code:
...
Lua.Print("Interface.FrameScript__GetTop() = " + Interface.FrameScript_GetTop());
Lua.DoString("print('test'); return 'test';");
Lua.Print("Interface.FrameScript__GetTop() = " + Interface.FrameScript_GetTop());
...
And here's what it prints:
Code:
Interface.FrameScript__GetTop() = 0
Interface.FrameScript__GetTop() = 0
However, according to the lua manual, it should print this
Code:
Interface.FrameScript__GetTop() = 0
Interface.FrameScript__GetTop() = 1
Anyone able to help me out, or point in a direction so i can figure out what's wrong?