Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究libev,ev_loop是libev的一个非常重要的组成部分。但是我搜索了libev源代码,找不到struct ev_loop的定义。
那么,ev_loop 应该是什么样子的呢?
struct ev_loop { /* anything here? */ }
ev.c 的第 1501 行和所有 ev_vars.h
struct ev_loop { ev_tstamp ev_rt_now; #define ev_rt_now ((loop)->ev_rt_now) #define VAR(name,decl) decl; #include "ev_vars.h" #undef VAR };