module Bindgen::Variables

Overview

Helper containing the default configuration variables.

These include:

  1. Everything in ENV verbatim.
  2. architecture one of aarch64, arm, armhf, i686, x86_64
  3. os one of darwin, freebsd, linux, openbsd, unix, windows
  4. libc one of gnu, musl
  5. pointersize one of 32, 64
  6. endian one of big, little

When requiring bindgen, e.g. to enhance it with custom processors, you can add custom defaults by modifying .builtin directly. This has to be done early, before the configuration file itself is read.

Defined in:

bindgen/variables.cr

Class Method Summary

Class Method Detail

def self.build(additional = nil) : ConfigReader::VariableHash #

Returns a hash of variables for a Parser.


[View source]
def self.builtin #

Built-in variables.