mojoshader.c
changeset 1148 3a061cc281c2
parent 1146 31337471b909
child 1150 02c0f0afb39a
equal deleted inserted replaced
1147:ff14a55da268 1148:3a061cc281c2
  1580 {
  1580 {
  1581     // just copy the whole token stream and make all other emitters no-ops.
  1581     // just copy the whole token stream and make all other emitters no-ops.
  1582     if (set_output(ctx, &ctx->mainline))
  1582     if (set_output(ctx, &ctx->mainline))
  1583     {
  1583     {
  1584         const size_t len = ((size_t) (ctx->tokens - ctx->orig_tokens)) * sizeof (uint32);
  1584         const size_t len = ((size_t) (ctx->tokens - ctx->orig_tokens)) * sizeof (uint32);
  1585         buffer_append(ctx->mainline, (const char *) ctx->tokens, len);
  1585         buffer_append(ctx->mainline, (const char *) ctx->orig_tokens, len);
  1586     } // if
  1586     } // if
  1587 } // emit_BYTECODE_finalize
  1587 } // emit_BYTECODE_finalize
  1588 
  1588 
  1589 static void emit_BYTECODE_end(Context *ctx) {}
  1589 static void emit_BYTECODE_end(Context *ctx) {}
  1590 static void emit_BYTECODE_phase(Context *ctx) {}
  1590 static void emit_BYTECODE_phase(Context *ctx) {}