ReactOS 0.4.17-dev-934-g091855f
preproc.h File Reference
#include "vkd3d_shader_private.h"
#include "wine/rbtree.h"
Include dependency graph for preproc.h:

Go to the source code of this file.

Classes

struct  preproc_if_state
 
struct  preproc_buffer
 
struct  preproc_file
 
struct  preproc_text
 
struct  preproc_expansion
 
struct  preproc_macro
 
struct  preproc_ctx
 
struct  preproc_ctx::preproc_func_state
 

Functions

bool preproc_add_macro (struct preproc_ctx *ctx, const struct vkd3d_shader_location *loc, char *name, char **arg_names, size_t arg_count, const struct vkd3d_shader_location *body_loc, struct vkd3d_string_buffer *body)
 
void preproc_close_include (struct preproc_ctx *ctx, const struct vkd3d_shader_code *code)
 
struct preproc_macro * preproc_find_macro (struct preproc_ctx *ctx, const char *name)
 
void preproc_free_macro (struct preproc_macro *macro)
 
bool preproc_push_include (struct preproc_ctx *ctx, char *filename, const struct vkd3d_shader_code *code)
 
void preproc_warning (struct preproc_ctx *ctx, const struct vkd3d_shader_location *loc, enum vkd3d_shader_error error, const char *format,...) VKD3D_PRINTF_FUNC(4
 
void static struct preproc_file * preproc_get_top_file (struct preproc_ctx *ctx)
 

Function Documentation

◆ preproc_add_macro()

bool preproc_add_macro ( struct preproc_ctx *  ctx,
const struct vkd3d_shader_location *  loc,
char *  name,
char **  arg_names,
size_t  arg_count,
const struct vkd3d_shader_location *  body_loc,
struct vkd3d_string_buffer *  body 
)

◆ preproc_close_include()

void preproc_close_include ( struct preproc_ctx *  ctx,
const struct vkd3d_shader_code *  code 
)

◆ preproc_find_macro()

struct preproc_macro * preproc_find_macro ( struct preproc_ctx *  ctx,
const char *  name 
)

◆ preproc_free_macro()

void preproc_free_macro ( struct preproc_macro *  macro)

◆ preproc_get_top_file()

void static struct preproc_file * preproc_get_top_file ( struct preproc_ctx *  ctx)
inlinestatic

Definition at line 143 of file preproc.h.

144{
145 VKD3D_ASSERT(ctx->file_count);
146 return &ctx->file_stack[ctx->file_count - 1];
147}
#define VKD3D_ASSERT(cond)
Definition: vkd3d_common.h:49

◆ preproc_push_include()

bool preproc_push_include ( struct preproc_ctx *  ctx,
char *  filename,
const struct vkd3d_shader_code *  code 
)

◆ preproc_warning()

void preproc_warning ( struct preproc_ctx *  ctx,
const struct vkd3d_shader_location *  loc,
enum vkd3d_shader_error  error,
const char *  format,
  ... 
)