Skip to content

Instantly share code, notes, and snippets.

@albertzsigovits
Created February 18, 2019 20:52
Show Gist options
  • Save albertzsigovits/1748d355bdb73ed8d349a0f94c589e2f to your computer and use it in GitHub Desktop.
Save albertzsigovits/1748d355bdb73ed8d349a0f94c589e2f to your computer and use it in GitHub Desktop.
Calling conventions
int __cdecl function_cdecl(int a, int b, int c)
{
return (a + b + c)
}
int __stdcall function_stdcall(int a, int b, int c)
{
return (a + b + c)
}
int __fastcall function_fastcall(int a, int b, int c)
{
return (a + b + c)
}
int main(void)
{
function_cdecl(1, 2, 3);
function_stdcall(4, 5, 6);
function_fastcall(7, 8, 9);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment