Page 1 of 1
Calling convention "fastcall"
Posted: Sun Jul 28, 2013 8:51 pm
by User_Russian
It would be great if PB kept calling convention fastcall (msfastcall). Need to add commands.
Code: Select all
ProcedureF
ProcedureFDLL
PrototypeF
CallFFunction()
CallFFunctionFast()
ImportF
Now accounts for to cause such functions using assembler, which is not very convenient.
Re: Calling convention "fastcall"
Posted: Sun Jul 28, 2013 10:41 pm
by Toni6
+1
would also be great if PB added __thiscall calling convention, making it easier to interface with c++ code.
Shouldn't be too hard to add it since it's the same has __stdcall + mov ecx, *this
Code: Select all
ProcedureThis
ProcedureThisDLL
PrototypeThis <- force & check for *this parameter
CallThisFunction()
CallThisFunctionFast()
ImportThis
InterfaceThis <- this would be really nice
Prototype example:
Code: Select all
PrototypeThis.l someMethod(*this, a.l)
Global pSomeMethod.someMethod
pSomeMethod(*someCPPClass, 123)
Re: Calling convention "fastcall"
Posted: Fri Feb 14, 2014 8:46 am
by Aming
User_Russian wrote:It would be great if PB kept calling convention fastcall (msfastcall). Need to add commands.
Code: Select all
ProcedureF
ProcedureFDLL
PrototypeF
CallFFunction()
CallFFunctionFast()
ImportF
Now accounts for to cause such functions using assembler, which is not very convenient.
Please see
http://www.planet-source-code.com/vb/sc ... 5&lngWId=1