class WinMD::Fun

Defined in:

winmd/fun.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String, params : Array(FunParam), original_def : String, return_type : String | Nil = nil) #

[View source]

Class Method Detail

def self.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.


[View source]
def self.exception?(name : String) #

[View source]
def self.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.


[View source]
def self.find_fun(name : String) #

[View source]
def self.funs #

[View source]
def self.libc_signature?(name : String) : LibCFuns::Signature | Nil #

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


[View source]
def self.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.


[View source]

Instance Method Detail

def ==(other : Fun) #

[View source]
def ==(other : String) #

[View source]
def file=(file) #

[View source]
def name : String #

[View source]
def original_def : String #

[View source]
def params : Array(WinMD::FunParam) #

[View source]
def return_type : String | Nil #

[View source]