Skip to content

Commit a0c4392

Browse files
Add comment for SDL_nlog and SDL_nlogf
1 parent 86ece3f commit a0c4392

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

units/sdlstdinc.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ function SDL_fmodf(x, y: cfloat): cfloat; cdecl;
334334
* Calculate the natural logarithm of x.
335335
*
336336
* \since This function is available since SDL 2.0.4.
337+
338+
SDL2-for-Pascal: ATTENTION: The original C name of this function is SDL_log,
339+
but since Pascal names are case-insensitive, it is in conflict with SDL_Log (logging function).
340+
Hence we decided to rename it.
337341
*)
338342
function SDL_nlog(x: cdouble): cdouble; cdecl;
339343
external SDL_LibName
@@ -343,6 +347,10 @@ function SDL_nlog(x: cdouble): cdouble; cdecl;
343347
* Calculate the natural logarithm of x.
344348
*
345349
* \since This function is available since SDL 2.0.8.
350+
351+
SDL2-for-Pascal: ATTENTION: The original C name of this function is SDL_logf,
352+
but to be consistent with the renamed SDL_log function (see comment of SDL_nlog
353+
for details), we decided to rename it.
346354
*)
347355
function SDL_nlogf(x: cfloat): cfloat; cdecl;
348356
external SDL_LibName

0 commit comments

Comments
 (0)