1 /* Register a function to be called by exit or when a shared library 2 is unloaded. This function is only called from code generated by 3 the C++ compiler. */ __cxa_atexit(void (* func)(void *),void * arg,void * d)4int __cxa_atexit(void (*func)(void *), void *arg, void *d) 5 { 6 // todo: 使用rust实现这个函数。参考:http://redox.longjin666.cn/xref/relibc/src/cxa.rs?r=c7d499d4&mo=323&fi=15#15 7 return 0; 8 } 9