2010年4月1日星期四

erlang 获取自定义属性信息

xxx:module_info(). %module_info 是每次模块在编译时自动创建
beam_lib("xxxx.beam", [attributes]).chunkid() = "Abst" | "Attr" | "CInf"
chunkid() = "Abst" | "Attr" | "CInf"
| "ExpT" | "ImpT" | "LocT"
| "Atom"
chunkname() = abstract_code | attributes | compile_info
| exports | labeled_exports
| imports | indexed_imports
| locals | labeled_locals
| atoms

chunkref() = chunkname() | chunkid()
chunks(Beam, [ChunkRef]) -> {ok, {Module, [ChunkData]}} | {error, beam_lib, Reason}

没有评论: