20 lines
528 B
C
20 lines
528 B
C
// dump.h — Shared result types for Zig Air compilation export.
|
|
#ifndef _ZIG0_DUMP_H__
|
|
#define _ZIG0_DUMP_H__
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
void* items; // SemaFuncAir* (from sema.h), owned by Zig allocator
|
|
uint32_t len;
|
|
} ZigCompileAirResult;
|
|
|
|
#define ZIG_COMPILE_ERR_BUF_SIZE 256
|
|
|
|
extern ZigCompileAirResult zig_compile_air(const char* src_path,
|
|
const char* module_root, char err_buf[ZIG_COMPILE_ERR_BUF_SIZE]);
|
|
extern void zig_compile_air_free(ZigCompileAirResult* result);
|
|
|
|
#endif
|