mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 19:16:21 +00:00
t/sdl_test: Fix macro collision on Windows
This commit is contained in:
parent
8603e5d63e
commit
173b36c3a2
|
@ -214,14 +214,14 @@ from_comp(struct xrt_compositor *xc)
|
|||
* @relates sdl_program
|
||||
* @ingroup sdl_test
|
||||
*/
|
||||
#define SP_TRACE(sp, ...) U_LOG_IFL_T(sp->log_level, __VA_ARGS__);
|
||||
#define ST_TRACE(sp, ...) U_LOG_IFL_T(sp->log_level, __VA_ARGS__);
|
||||
|
||||
/*!
|
||||
* Debug level logging.
|
||||
*
|
||||
* @relates sdl_program
|
||||
*/
|
||||
#define SP_DEBUG(sp, ...) U_LOG_IFL_D(sp->log_level, __VA_ARGS__);
|
||||
#define ST_DEBUG(sp, ...) U_LOG_IFL_D(sp->log_level, __VA_ARGS__);
|
||||
|
||||
/*!
|
||||
* Info level logging.
|
||||
|
@ -229,7 +229,7 @@ from_comp(struct xrt_compositor *xc)
|
|||
* @relates sdl_program
|
||||
* @ingroup sdl_test
|
||||
*/
|
||||
#define SP_INFO(sp, ...) U_LOG_IFL_I(sp->log_level, __VA_ARGS__);
|
||||
#define ST_INFO(sp, ...) U_LOG_IFL_I(sp->log_level, __VA_ARGS__);
|
||||
|
||||
/*!
|
||||
* Warn level logging.
|
||||
|
@ -237,7 +237,7 @@ from_comp(struct xrt_compositor *xc)
|
|||
* @relates sdl_program
|
||||
* @ingroup sdl_test
|
||||
*/
|
||||
#define SP_WARN(sp, ...) U_LOG_IFL_W(sp->log_level, __VA_ARGS__);
|
||||
#define ST_WARN(sp, ...) U_LOG_IFL_W(sp->log_level, __VA_ARGS__);
|
||||
|
||||
/*!
|
||||
* Error level logging.
|
||||
|
@ -245,7 +245,7 @@ from_comp(struct xrt_compositor *xc)
|
|||
* @relates sdl_program
|
||||
* @ingroup sdl_test
|
||||
*/
|
||||
#define SP_ERROR(sp, ...) U_LOG_IFL_E(sp->log_level, __VA_ARGS__);
|
||||
#define ST_ERROR(sp, ...) U_LOG_IFL_E(sp->log_level, __VA_ARGS__);
|
||||
|
||||
/*!
|
||||
* Check for OpenGL errors, context needs to be current.
|
||||
|
|
|
@ -45,7 +45,7 @@ vk_format_to_gl(int64_t format)
|
|||
static void
|
||||
post_init_setup(struct sdl_swapchain *ssc, struct sdl_program *sp, const struct xrt_swapchain_create_info *info)
|
||||
{
|
||||
SP_DEBUG(sp, "CREATE");
|
||||
ST_DEBUG(sp, "CREATE");
|
||||
|
||||
// Setup fields
|
||||
ssc->sp = sp;
|
||||
|
@ -114,7 +114,7 @@ really_destroy(struct comp_swapchain *sc)
|
|||
struct sdl_swapchain *ssc = (struct sdl_swapchain *)sc;
|
||||
struct sdl_program *sp = ssc->sp;
|
||||
|
||||
SP_DEBUG(sp, "DESTROY");
|
||||
ST_DEBUG(sp, "DESTROY");
|
||||
|
||||
sdl_make_current(sp);
|
||||
|
||||
|
|
Loading…
Reference in a new issue