What does "win32" in quotes at the end of a funct-

BlitzMax Forums/BlitzMax Programming/What does "win32" in quotes at the end of a funct-

sswift(Posted 2009) [#1]
-ion declaration do?

Function WinProc:Int(hWnd:Int,Msg:Int,wParam:Int,lParam:Int) "win32"


SebHoll(Posted 2009) [#2]
It's a directive used to tell the compiler that the function should adhere to the Windows Standard Calling Convention, and should be used whenever your BlitzMax coded function is going to be called from external libraries or by the OS. If you omit this, strange behaviour might become apparent in your code, particularly when using and manipulating arrays.

The other directive is "C", which represents the ANSI C Calling Convention, typically used on Mac/Linux.