Zen-C
Loading...
Searching...
No Matches
ZApi Struct Reference

Host API provided to plugins. More...

#include <zprep_plugin.h>

Data Fields

const char * filename
 Current file name being processed.
 
int current_line
 Current line number.
 
FILE * out
 Inline output stream (replaces the macro call).
 
FILE * hoist_out
 Hoisted output stream (writes to file scope/header).
 

Detailed Description

Host API provided to plugins.

Plugins use this structure to interact with the compiler/codegen environment.

Field Documentation

◆ current_line

int ZApi::current_line

Current line number.

◆ filename

const char* ZApi::filename

Current file name being processed.

◆ hoist_out

FILE* ZApi::hoist_out

Hoisted output stream (writes to file scope/header).

◆ out

FILE* ZApi::out

Inline output stream (replaces the macro call).


The documentation for this struct was generated from the following file: