mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Move hlsl_message() and hlsl_report_message() to hlsl.c.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0c73afd424
commit
0da1401d3d
@ -20,6 +20,22 @@
|
||||
#include "hlsl.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void hlsl_message(const char *fmt, ...)
|
||||
{
|
||||
/* FIXME */
|
||||
}
|
||||
|
||||
void hlsl_report_message(const struct source_location loc,
|
||||
enum hlsl_error_level level, const char *fmt, ...)
|
||||
{
|
||||
/* FIXME */
|
||||
|
||||
if (level == HLSL_LEVEL_ERROR)
|
||||
set_parse_status(&hlsl_ctx.status, PARSE_ERR);
|
||||
else if (level == HLSL_LEVEL_WARNING)
|
||||
set_parse_status(&hlsl_ctx.status, PARSE_WARN);
|
||||
}
|
||||
|
||||
BOOL add_declaration(struct hlsl_scope *scope, struct hlsl_ir_var *decl, BOOL local_var)
|
||||
{
|
||||
struct hlsl_ir_var *var;
|
||||
|
@ -30,22 +30,6 @@ struct hlsl_parse_ctx hlsl_ctx;
|
||||
struct YYLTYPE;
|
||||
static struct source_location get_location(const struct YYLTYPE *l);
|
||||
|
||||
void hlsl_message(const char *fmt, ...)
|
||||
{
|
||||
/* FIXME */
|
||||
}
|
||||
|
||||
void hlsl_report_message(const struct source_location loc,
|
||||
enum hlsl_error_level level, const char *fmt, ...)
|
||||
{
|
||||
/* FIXME */
|
||||
|
||||
if (level == HLSL_LEVEL_ERROR)
|
||||
set_parse_status(&hlsl_ctx.status, PARSE_ERR);
|
||||
else if (level == HLSL_LEVEL_WARNING)
|
||||
set_parse_status(&hlsl_ctx.status, PARSE_WARN);
|
||||
}
|
||||
|
||||
static void hlsl_error(const char *s)
|
||||
{
|
||||
const struct source_location loc =
|
||||
|
Loading…
Reference in New Issue
Block a user