funct(3rtapi)

okay bestie, welcome to funct(3rtapi) from the RTAPI manual β€” the page for rtapi_bool.h, and it's literally the low-drama include helper of your dreams. πŸ’–

🌸 NAME 🌸

rtapi_bool.h β€” RTAPI wrappers for linux kernel functionality. That's the whole vibe. ✨

✨ SYNTAX ✨

Drop this in and you're good:

#include <rtapi_bool.h>

πŸ’– DESCRIPTION πŸ’–

okay so what does it do? It includes either <stdbool.h> or <linux/types.h> as appropriate, to obtain suitable declarations of "bool", "true" and "false". That's it. That's the slay. πŸŽ€

πŸ¦‹ REALTIME CONSIDERATIONS πŸ¦‹

None. None. Not a single realtime consideration in sight. πŸ’…

πŸŽ€ NOTES πŸŽ€

Also permitted in C++ programs, where including it has no effect. So if you're in C++ land, this include is just chillin' β€” no effect, no cap. 🫢


xoxo, LinuxCNC Documentation, dated 2014-06-28. Bye bestie! πŸ’–βœ¨