mirror of
https://github.com/nmlgc/ReC98.git
synced 2025-02-26 20:55:09 +00:00

Should have remembered this from all the times I've looked at the list of #pragma directives supported by Turbo C++… Still, I would have at least expected a warning, but not even the `ill` warning covers this. Part of P0062, funded by Touhou Patch Center.
10 lines
254 B
C
10 lines
254 B
C
// Common calling convention macro for some functions that originated in TH02
|
|
// as __cdecl, but were then changed to __pascal in TH03.
|
|
#ifndef GAME
|
|
# error GAME not defined
|
|
#elif GAME >= 3
|
|
# define DEFCONV __pascal
|
|
#else
|
|
# define DEFCONV __cdecl
|
|
#endif
|