aboutsummaryrefslogtreecommitdiff
path: root/src/op/unreachable.c
blob: c3430528eccc9e975143197b6fce28d5201faaee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <ops.h>
#include <interp.h>
#include <interp_private.h>
#include <stdbool.h>
#include <stdio.h>

int op_unreachable(struct interp *const i)
{
    i->exception = "Unreachable instruction";
    i->exit = true;
    return 1;
}

int check_unreachable(FILE *const f)
{
    return 0;
}