nanowasm/src/section/custom.c

22 lines
404 B
C

#include <log.h>
#include <sections.h>
#include <nanowasm/nw.h>
#include <wasm_types.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
int section_custom_check(const struct section *const s,
const unsigned long len)
{
FILE *const f = s->f;
if (fseek(f, len, SEEK_CUR))
{
LOG("%s: fseek(3): %s\n", __func__, strerror(errno));
return -1;
}
return 0;
}