Skip to content

Commit 3f5fbdb

Browse files
Add comments for untranslated macros + remove version tag comment
1 parent 9389b0d commit 3f5fbdb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

units/sdlmutex.inc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// based on "sdl_mutex.h" (2.0.14)
1+
// based on "sdl_mutex.h"
22

33
const
44
{**
@@ -55,6 +55,9 @@ function SDL_CreateMutex: PSDL_Mutex; cdecl;
5555
function SDL_LockMutex(mutex: PSDL_Mutex): cint; cdecl;
5656
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_LockMutex' {$ENDIF} {$ENDIF};
5757

58+
{ SDL2-for-Pascal: SDL_mutexP macro ignored; no benefit for the Pascal units }
59+
//C: #define SDL_mutexP(m) SDL_UnlockMutex(m)
60+
5861
{**
5962
* Try to lock a mutex without blocking.
6063
*
@@ -93,6 +96,9 @@ function SDL_TryLockMutex(mutex: PSDL_Mutex): cint; cdecl;
9396
function SDL_UnlockMutex(mutex: PSDL_Mutex): cint; cdecl;
9497
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_UnlockMutex' {$ENDIF} {$ENDIF};
9598

99+
{ SDL2-for-Pascal: SDL_mutexV macro ignored; no benefit for the Pascal units }
100+
//C: #define SDL_mutexV(m) SDL_UnlockMutex(m)
101+
96102
{**
97103
* Destroy a mutex created with SDL_CreateMutex().
98104
*

0 commit comments

Comments
 (0)