[PATCH 12/21] dlls/jscript: Use FIXME_ONCE

David Kahurani k.kahurani at gmail.com
Fri Oct 15 10:35:43 CDT 2021


introduce FIXME_ONCE

Signed-off-by: David Kahurani <k.kahurani at gmail.com>
---
 dlls/jscript/global.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dlls/jscript/global.c b/dlls/jscript/global.c
index 2665bec..3a75251 100644
--- a/dlls/jscript/global.c
+++ b/dlls/jscript/global.c
@@ -549,9 +549,7 @@ static HRESULT JSGlobal_ScriptEngineBuildVersion(script_ctx_t *ctx, vdisp_t *jst
 static HRESULT JSGlobal_CollectGarbage(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, unsigned argc, jsval_t *argv,
         jsval_t *r)
 {
-    static int once = 0;
-    if (!once++)
-        FIXME(": stub\n");
+    FIXME_ONCE(": stub\n");
     return S_OK;
 }
 
-- 
2.33.0




More information about the wine-devel mailing list