~aleteoryx/muditaos

ref: 51184eb7501438871e8c31f7e1929f8ad501dfd2 muditaos/board/linux/libiosyscalls/include/debug.hpp -rw-r--r-- 1.0 KiB
51184eb7 — Marcin Zieliński [MOS-931] Correctly abbreviate multiline strings in dialog titles 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#ifdef DEBUG_SHARED_LIBRARY_FS_LIB
namespace vfsn::linux::internal
{
    void debug_trace_syscall(const char *fn, const char *format, ...);
}
#define TRACE_SYSCALL()             vfsn::linux::internal::debug_trace_syscall(__PRETTY_FUNCTION__, "")
#define TRACE_SYSCALLN(format, ...) vfsn::linux::internal::debug_trace_syscall(__PRETTY_FUNCTION__, format, __VA_ARGS__)
#else
#define TRACE_SYSCALL()                                                                                                \
    do {                                                                                                               \
    } while (0)
#define TRACE_SYSCALLN(format, ...)                                                                                    \
    do {                                                                                                               \
    } while (0)
#endif