mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
anv: Remove semicolons from vk_error[f] definitions
With the semicolons, they can't be used in a function argument without
throwing syntax errors.
Tested-by: Józef Kucia <joseph.kucia@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Cc: "18.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit d5592e2fda)
This commit is contained in:
parent
cb5abcd715
commit
064fbf7180
1 changed files with 2 additions and 2 deletions
|
|
@ -313,10 +313,10 @@ VkResult __vk_errorf(struct anv_instance *instance, const void *object,
|
|||
#ifdef DEBUG
|
||||
#define vk_error(error) __vk_errorf(NULL, NULL,\
|
||||
VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT,\
|
||||
error, __FILE__, __LINE__, NULL);
|
||||
error, __FILE__, __LINE__, NULL)
|
||||
#define vk_errorf(instance, obj, error, format, ...)\
|
||||
__vk_errorf(instance, obj, REPORT_OBJECT_TYPE(obj), error,\
|
||||
__FILE__, __LINE__, format, ## __VA_ARGS__);
|
||||
__FILE__, __LINE__, format, ## __VA_ARGS__)
|
||||
#else
|
||||
#define vk_error(error) error
|
||||
#define vk_errorf(instance, obj, error, format, ...) error
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue