ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2020年2月20日

摘要: 1. c文件打印 log 参考:https://blog.csdn.net/cloverjf/article/details/78683874 2. 多个 native 库,只需要修改 cmake 的文件,把 add_library() 和 target_link_libraries() 再多写一份 阅读全文
posted @ 2020-02-20 09:46 ramlife 阅读(156) 评论(0) 推荐(0)

摘要: ###1. 变量定义的时候,多使用 auto 关键字。 auto x = (uint8_t)y.x ###2. 很多宏定义都可以使用 constexpr 来代替,有很多好处。唯一需要宏定义的地方是预处理。 参考:https://stackoverflow.com/questions/42388077 阅读全文
posted @ 2020-02-20 09:41 ramlife 阅读(386) 评论(0) 推荐(0)