class
WinMD::Fun
- WinMD::Fun
- Reference
- Object
Defined in:
winmd/fun.crConstructors
Class Method Summary
-
.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 fromWinMD.libc_funs_file. - .exception?(name : String)
-
.exceptions
Functions that Crystal's own LibC already declares (or that the user listed in fun_exceptions.json).
- .find_fun(name : String)
- .funs
-
.libc_signature?(name : String) : LibCFuns::Signature | Nil
Known only for functions found by discovery, not for listed names.
-
.libc_signatures
Signatures of the discovered LibC functions, keyed by C symbol name.
Instance Method Summary
- #==(other : Fun)
- #==(other : String)
- #file=(file)
- #name : String
- #original_def : String
- #params : Array(WinMD::FunParam)
- #return_type : String | Nil
Constructor Detail
Class Method Detail
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.
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.
Known only for functions found by discovery, not for listed names.
Signatures of the discovered LibC functions, keyed by C symbol name. Functions from fun_exceptions.json (or --libc-funs) have no entry here.