mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 09:00:40 +02:00
This follows discussions from #3413. Followup commits add clang-format file, script and blame ignore lists.
22 lines
723 B
C
22 lines
723 B
C
// SPDX-License-Identifier: MIT
|
|
#pragma once
|
|
|
|
#ifndef DO_PRAGMA
|
|
#define DO_PRAGMA(x) _Pragma(#x)
|
|
#endif
|
|
|
|
#if FEX_WARN_TODO
|
|
// FEX_TODO_ISSUE(github ticket number, "comment")
|
|
#define FEX_TODO_ISSUE(github_ticket, comment) DO_PRAGMA(GCC warning "TODO: https://github.com/FEX-Emu/FEX/issues/" #github_ticket comment);
|
|
// FEX_TODO("comment")
|
|
#define FEX_TODO(comment) DO_PRAGMA(GCC warning "TODO: " comment);
|
|
#else
|
|
// FEX_TODO_ISSUE(github ticket number, "comment")
|
|
#define FEX_TODO_ISSUE(github_ticket, comment)
|
|
// FEX_TODO("comment")
|
|
#define FEX_TODO(comment)
|
|
#endif
|
|
|
|
// For linking to tickets, non-todo
|
|
// FEX_TICKET(github ticket number) or FEX_TICKET(github ticket number, "comment")
|
|
#define FEX_TICKET(github_ticket, ...) |