怎樣使代碼在main函數前執行,怎樣使代碼在main函數以後執行

本文爲senlie原創,轉載請保留此地址:http://blog.csdn.net/zhengsenlieios 網上有說能夠用函數 __attribute__ ((constructor)) 來讓函數在main函數以前執行, spa __attribute__ ((destructor)) 來讓函數在main函數以後執行。 .net 好比說像下面這樣聲明函數code void before(vo
相關文章
相關標籤/搜索