mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Don't hard-code the printf signature.
This commit is contained in:
1 parent
f8146cf1c6
commit
7f47f19d4a
4 files changed
+17
-17
No files matched your search
+3
-3
@@ -395,14 +395,14 @@ typedef struct {
|
||||
#if defined(__GNUC__)
|
||||
#define PUFFS_BASE__LIKELY(expr) (__builtin_expect(!!(expr), 1))
|
||||
#define PUFFS_BASE__UNLIKELY(expr) (__builtin_expect(!!(expr), 0))
|
||||
// Declare the printf prototype. The generated code shouldn't need this at all,
|
||||
// but it's useful for manual printf debugging.
|
||||
extern int printf(const char* __restrict __format, ...);
|
||||
#else
|
||||
#define PUFFS_BASE__LIKELY(expr) (expr)
|
||||
#define PUFFS_BASE__UNLIKELY(expr) (expr)
|
||||
#endif
|
||||
|
||||
// Uncomment this #include for printf-debugging.
|
||||
// #include <stdio.h>
|
||||
|
||||
// ---------------- Static Inline Functions
|
||||
//
|
||||
// The helpers below are functions, instead of macros, because their arguments
|
||||
|
||||
+3
-3
@@ -342,14 +342,14 @@ typedef struct {
|
||||
#if defined(__GNUC__)
|
||||
#define PUFFS_BASE__LIKELY(expr) (__builtin_expect(!!(expr), 1))
|
||||
#define PUFFS_BASE__UNLIKELY(expr) (__builtin_expect(!!(expr), 0))
|
||||
// Declare the printf prototype. The generated code shouldn't need this at all,
|
||||
// but it's useful for manual printf debugging.
|
||||
extern int printf(const char* __restrict __format, ...);
|
||||
#else
|
||||
#define PUFFS_BASE__LIKELY(expr) (expr)
|
||||
#define PUFFS_BASE__UNLIKELY(expr) (expr)
|
||||
#endif
|
||||
|
||||
// Uncomment this #include for printf-debugging.
|
||||
// #include <stdio.h>
|
||||
|
||||
// ---------------- Static Inline Functions
|
||||
//
|
||||
// The helpers below are functions, instead of macros, because their arguments
|
||||
|
||||
Reference in new issue
Block a user