mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-31 10:02:49 +01:00
5b2006cd06
Psychological burden NO MORE
18 lines
349 B
C
18 lines
349 B
C
#pragma once
|
|
|
|
#ifndef FF_INCLUDED_detection_internal
|
|
#define FF_INCLUDED_detection_internal
|
|
|
|
#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; \
|
|
|
|
#endif
|