mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Include vkd3d_common.h in vkd3d_test.h.
This commit is contained in:
parent
eb05a388e1
commit
5f3d5a1263
@ -28,6 +28,14 @@
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
|
||||
|
||||
#ifdef __GNUC__
|
||||
# define VKD3D_PRINTF_FUNC(fmt, args) __attribute__((format(printf, fmt, args)))
|
||||
# define VKD3D_UNUSED __attribute__((unused))
|
||||
#else
|
||||
# define VKD3D_PRINTF_FUNC(fmt, args)
|
||||
# define VKD3D_UNUSED
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#ifndef _WIN32
|
||||
# if HAVE_SYNC_ADD_AND_FETCH
|
||||
static inline ULONG InterlockedIncrement(ULONG volatile *x)
|
||||
|
@ -25,12 +25,6 @@
|
||||
|
||||
#include "vkd3d_common.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
# define VKD3D_PRINTF_FUNC(fmt, args) __attribute__((format(printf, fmt, args)))
|
||||
#else
|
||||
# define VKD3D_PRINTF_FUNC(fmt, args)
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
enum vkd3d_dbg_level
|
||||
{
|
||||
VKD3D_DBG_LEVEL_NONE,
|
||||
|
@ -29,20 +29,14 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "vkd3d_common.h"
|
||||
|
||||
static void vkd3d_test_main(void);
|
||||
static const char *vkd3d_test_name;
|
||||
|
||||
#define START_TEST(name) static const char *vkd3d_test_name = #name; \
|
||||
static void vkd3d_test_main(void)
|
||||
|
||||
#ifdef __GNUC__
|
||||
# define VKD3D_PRINTF_FUNC(fmt, args) __attribute__((format(printf, fmt, args)))
|
||||
# define VKD3D_UNUSED __attribute__((unused))
|
||||
#else
|
||||
# define VKD3D_PRINTF_FUNC(fmt, args)
|
||||
# define VKD3D_UNUSED
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#define ok ok_(__LINE__)
|
||||
#define todo todo_(__LINE__)
|
||||
#define skip skip_(__LINE__)
|
||||
|
@ -55,8 +55,6 @@ typedef int HRESULT;
|
||||
# include "vkd3d_utils.h"
|
||||
#endif
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))
|
||||
|
||||
static size_t align(size_t addr, unsigned int alignment)
|
||||
{
|
||||
return (addr + (alignment - 1)) & ~(alignment - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user