__attribute__ ((destructor))

[http://www.blogjava.net/baicker/archive/2008/05/09/199491.html]html 在 Linux 上,GCC 有一個擴展,容許指定當可執行文件或者包含它的共享對象啓動或中止時應該調用某個函數。語法是 __attribute__((constructor)) 或 __attribute__((destructor))。這些基本上與構造函數及析構
相關文章
相關標籤/搜索