cdecl.go
raw| 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // SPDX-FileCopyrightText: 2026 The Ebitengine Authors |
| 3 | |
| 4 | package purego |
| 5 | |
| 6 | // CDecl marks a function as being called using the __cdecl calling convention as defined in |
| 7 | // the [MSDocs] when passed to NewCallback. It must be the first argument to the function. |
| 8 | // This is only useful on 386 Windows, but it is safe to use on other platforms. |
| 9 | // |
| 10 | // [MSDocs]: https://learn.microsoft.com/en-us/cpp/cpp/cdecl?view=msvc-170 |
| 11 | type CDecl struct{} |