OxL Reference

kw import

Reserved keyword

The list of words: §1.4

Defined in

  • 16.1 C — import c reads a header through libclang at compile time.
  • 16.2 C++ — import cpp "engine/math.hpp" { Vec3, Mat4, lerp } supports
  • 16.3 gRPC and protobuf — import proto "payments.proto" generates an extern service and types; calls are as to ordinary services through connect.
  • 1.4 Keywords — Reserved (cannot be used as names)

Examples

oxl
import c "zlib.h" { deflate, inflate, z_stream }
extern c fn getpid() -> i32
export c fn oxl_handle(req: *u8, len: usize) -> i32 { … }

— 16.1 C

Related diagnostics

ffi-import, import-skip

See also