mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 05:04:17 +01:00
13 lines
260 B
C
13 lines
260 B
C
#pragma once
|
|
|
|
#include "common/thread.h"
|
|
|
|
#define FF_DETECTION_INTERNAL_GUARD(ResultType, ...) \
|
|
static ResultType result; \
|
|
static bool init = false; \
|
|
if(init) \
|
|
return &result; \
|
|
init = true; \
|
|
__VA_ARGS__; \
|
|
return &result;
|