12 ms·
struct wl_list from wayland project also works similarly. It really blew me away when I figured out how the macro uses pointer arithmetic to get the address of
by sagartewari01 8y ago
struct wl_list from wayland project also works similarly. It really blew me away when I figured out how the macro uses pointer arithmetic to get the address of container.
Here's an article I wrote about the wl_list implementation:
http://www.sagartewari01.com/c-macro-magic/ http://www.sagartewari01.com/c-macro-magic/