File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343class CNTV2Card ;
4444
4545#ifdef _MSC_VER
46- #define bug_msg (x, ...) \
47- log_msg (x, __VA_ARGS__); \
48- log_msg (x, " Please report a bug if you reach here.\n " )
4946#define color_printf printf
5047#undef LOG
5148#include < iostream>
Original file line number Diff line number Diff line change 33 * @author Martin Pulec <pulec@cesnet.cz>
44 */
55/*
6- * Copyright (c) 2017-2025 CESNET, zájmové sdružení právnických osob
6+ * Copyright (c) 2017-2026 CESNET, zájmové sdružení právnických osob
77 * All rights reserved.
88 *
99 * Redistribution and use in source and binary forms, with or without
6767#define aligned_malloc _aligned_malloc
6868#define aligned_free _aligned_free
6969
70+ #define bug_msg (log_level , ...) \
71+ fprintf(stderr, __VA_ARGS__); \
72+ fprintf(stderr, "Please report a bug if you reach here.\n")
73+
7074#endif // defined _MSC_VER
7175
7276#endif // defined CONFIG_MSVC_H
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ bool parse_log_cfg(const char *conf_str,
120120#if defined __MINGW32__
121121 __MINGW_GNU_PRINTF (2 , 3 )
122122 void bug_msg(int level, const char *format, ...);
123- #else
123+ #elif !defined _MSC_VER
124124 void bug_msg (int level, const char *format, ...)
125125 __attribute__((format(printf, 2 , 3 )));
126126#endif
Original file line number Diff line number Diff line change 33 * @author Martin Pulec <pulec@cesnet.cz>
44 *
55 * @brief Configuration file for UltraGrid
6+ *
7+ * @todo
8+ * TOREMOVE: doesn't seem to be used anyhow - if noone objects to, remove
9+ * after some time (perhaps after next release).
610 */
711/*
812 * Copyright (c) 2013-2026 CESNET, zájmové sdružení právnických osob
4448#include < cstring>
4549
4650#include " config_msvc.h"
51+ #include " debug.h"
4752#include " compat/strings.h" // for strlcpy
4853
4954
55+ #define MOD_NAME " [config_file] "
56+
5057using namespace std ;
5158
5259struct config_file {
@@ -90,6 +97,9 @@ struct config_file *config_file_open(const char *name)
9097 if (f == NULL ) {
9198 return NULL ;
9299 }
100+ bug_msg (LOG_LEVEL_WARNING, MOD_NAME
101+ " configuration file is deprecated and about to be removed in "
102+ " future. Please let us know if using this feature. " );
93103 struct config_file *s = (struct config_file *) calloc (1 , sizeof (struct config_file ));
94104 s->f = f;
95105 strncpy (s->file_name , name, sizeof (s->file_name ) - 1 );
You can’t perform that action at this time.
0 commit comments