Exemplo n.º 1
0
static bool
RenderGetLocal(WasmRenderContext& c, AstGetLocal& gl)
{
    if (!c.buffer.append("(get_local "))
        return false;
    if (!RenderRef(c, gl.local()))
        return false;
    if (!c.buffer.append(")"))
        return false;
    return true;
}
Exemplo n.º 2
0
static bool
RenderGetLocal(WasmRenderContext& c, AstGetLocal& gl)
{
    if (!RenderIndent(c))
        return false;

    MAP_AST_EXPR(c, gl);
    if (!c.buffer.append("get_local "))
        return false;
    return RenderRef(c, gl.local());
}