class

WinMD::Fun

Inherits Reference < Object

Constructors

new(name : String, params : Array(FunParam), original_def : String, return_type : String | Nil = nil)
Source

Class methods

collect_funs

Builds the exception list: fun_exceptions.json plus the LibC functions of the Crystal that will compile the bindings, discovered at run time (WinMD::LibCFuns.discover) or read from WinMD.libc_funs_file.

Source
exception?(name : String)
Source
exceptions

Functions that Crystal's own LibC already declares (or that the user listed in fun_exceptions.json). The generator comments these out instead of redeclaring them.

Source
find_fun(name : String)
Source
funs
Source
libc_signature?(name : String) : LibCFuns::Signature | Nil

Known only for functions found by discovery, not for listed names.

Source
libc_signatures

Signatures of the discovered LibC functions, keyed by C symbol name. Functions from fun_exceptions.json (or --libc-funs) have no entry here.

Source

Instance methods

==(other : Fun)
Source
==(other : String)
Source
file=(file)
Source
name
Source
original_def
Source
params
Source
return_type
Source