/
githubmirror
/
redis
Обзор
Документация
Войти
/
githubmirror
/
redis
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2.8
src/debugmacro.h
26 строк
1 KB
Pieter Cailliau
Adding AGPLv3 as a license option to Redis! (#13997)
01 май 2025, 16:04
Не верифицирован
01 май 2025, 16:04
d651028
Код
Авторство
О чём код?
/* This file contains debugging macros to be used when investigating issues. * * ----------------------------------------------------------------------------- * * Copyright (c) 2016-Present, Redis Ltd. * All rights reserved. * * Licensed under your choice of (a) the Redis Source Available License 2.0 * (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the * GNU Affero General Public License v3 (AGPLv3). */ #ifndef _REDIS_DEBUGMACRO_H_ #define _REDIS_DEBUGMACRO_H_ #include <stdio.h> #define D(...) \ do { \ FILE *fp = fopen("/tmp/log.txt","a"); \ fprintf(fp,"%s:%s:%d:\t", __FILE__, __func__, __LINE__); \ fprintf(fp,__VA_ARGS__); \ fprintf(fp,"\n"); \ fclose(fp); \ } while (0) #endif /* _REDIS_DEBUGMACRO_H_ */