mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
FexHeaderUtils: Add TodoDefines
This commit is contained in:
1 parent
70988ccfee
commit
ad1fd7f54b
1 file changed
+19
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef DO_PRAGMA
|
||||
#define DO_PRAGMA(x) _Pragma (#x)
|
||||
#endif
|
||||
|
||||
#if FEX_WARN_TODO
|
||||
// Use like FEX_TODO_ISSUE(github ticket number, username, comment) or
|
||||
// FEX_TODO_ISSUE(github ticket number, comment)
|
||||
#define FEX_TODO_ISSUE(number, ...) DO_PRAGMA(GCC warning "TODO: https://github.com/FEX-Emu/FEX/issues/" #number __VA_ARGS__)
|
||||
// Use like FEX_TODO(username, comment) or FEX_TODO(comment)
|
||||
#define FEX_TODO(...) DO_PRAGMA(GCC warning "TODO: " __VA_ARGS__);
|
||||
#else
|
||||
// Use like FEX_TODO_ISSUE(github ticket number, username, comment) or
|
||||
// FEX_TODO_ISSUE(github ticket number, comment)
|
||||
#define FEX_TODO_ISSUE(number, ...) do {} while (false)
|
||||
// Use like FEX_TODO(username, comment) or FEX_TODO(comment)
|
||||
#define FEX_TODO(...) do {} while (false)
|
||||
#endif
|
||||
Reference in new issue
Block a user