We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3b472a commit f0d6f79Copy full SHA for f0d6f79
units/SDL3.pas
@@ -110,6 +110,7 @@ interface
110
{$I SDL_dialog.inc} // 3.2.0
111
{$I SDL_time.inc} // 3.2.0
112
{$I SDL_filesystem.inc} // 3.2.0
113
+{$I SDL_atomic.inc} // 3.2.0
114
115
116
implementation
@@ -313,5 +314,16 @@ function SDL_WINDOWPOS_ISCENTERED(X: Integer): Boolean;
313
314
Result := (X and $FFFF0000) = SDL_WINDOWPOS_CENTERED_MASK;
315
end;
316
317
+{ Macros from SDL_atomic.h }
318
+function SDL_AtomicIncRef(a: PSDL_AtomicInt): cint;
319
+begin
320
+ SDL_AtomicIncRef:=SDL_AddAtomicInt(a,1);
321
+end;
322
+
323
+function SDL_AtomicDecRef(a: PSDL_AtomicInt): cbool;
324
325
+ SDL_AtomicDecRef:=(SDL_AddAtomicInt(a,-1)=1);
326
327
328
end.
329
0 commit comments