Passing an array through CallLocalFunction
#5

If you use CallLocalFunction you could use this little trick
You simply pass the address of the string / array
PHP код:
GetAddress(...) {
    
#emit load.s.pri 12
    #emit retn
    
return 0;
}
new 
text[] = "Hello World";
CallLocalFunction("Print""i"GetAddress(text));
forward Print(text[]);
public Print(
text[]) print(text); 
You can also pass empty strings with that, used it before in my command processor until I switched to a pure emit version
Reply


Messages In This Thread
Passing an array through CallLocalFunction - by dusk - 11.07.2016, 10:06
Re: Passing an array through CallLocalFunction - by PrO.GameR - 11.07.2016, 11:09
Re: Passing an array through CallLocalFunction - by Konstantinos - 11.07.2016, 11:26
Re: Passing an array through CallLocalFunction - by dusk - 11.07.2016, 11:56
Re: Passing an array through CallLocalFunction - by Nero_3D - 11.07.2016, 16:23
Re: Passing an array through CallLocalFunction - by dusk - 11.07.2016, 17:21
Re: Passing an array through CallLocalFunction - by OneDay - 11.07.2016, 17:36

Forum Jump:


Users browsing this thread: 2 Guest(s)