11 2021 档案
摘要:Intro RAII是c++的看手好戏,用过的都说好。面对c,可没有RAII这种东西使用。还好,gcc提供了一些折中的方案来剑走偏峰,来实现RAII。如下: __attribute__((cleanup(free-function))) attribute的使用简介还请看ref。此不在讲解范围内。
阅读全文
摘要:技巧1 Shell + inotifywait 的使用 在修改代码时,总会编译一下看一下,运行是否正常。但是每次写完还要切换make一下,比较麻烦。于是乎,发现inotifywait这个工具真好用。其详解见man inotify。 $ while inotifywait -e modify <fil
阅读全文

浙公网安备 33010602011771号