TICKIT_DEBUG_INIT(3)
π TICKIT_DEBUG_INIT(3) π
ok so bestie, welcome to the Library Functions Manual section for tickit_debug_init β yes she's a whole 3-page girly, and yes she is exactly the function you want when you're like "why is my app not printing the debug tea" π«β¨
πΈ NAME πΈ
tickit_debug_init β initialise the debugging system, periodt π
β¨ SYNOPSIS β¨
#include <tickit.h>
void tickit_debug_init(void);
bool tickit_debug_enabled;
Link with -ltickit.
π¦ DESCRIPTION π¦
okay so tickit_debug_init() is the function that wakes the whole libtickit debugging system up. It reads the values of the environment variables and sets up the output filehandle β that's the if enabled part, iykyk π
She also has a side-effect, and it's a big one: she touches the value of the global variable tickit_debug_enabled, setting it to the correct value. like, she doesn't just vibe in the background, she literally sets the vibe. π
So if your application wants to read that variable to control its own output of debugging messages, you lowkey want to call this function on startup β that way you can be 100% sure it's holding the correct value and not just guessing fr fr.
the way that tickit_debug_init() is guarded internally so it is safe to call multiple times β no cap! So there is literally no downside to opportunistically invoking it on startup anyway, even if some other part of the application may also have already done it. Two calls? Fine. Ten calls? Still fine. She ate and she's not even mad about it. πβ¨
π RETURN VALUE π
This function returns no value. Not a 0, not a NULL, not a lil' status code. Nothing. She gives you main character energy and nothing else. π«Ά
π SEE ALSO π
ok that's the whole page bestie, go forth and debug slayfully π₯π
Library Functions Manual Β· TICKIT_DEBUG_INIT(3) β mwah, kiss kiss, see u in the man pages πππ¦
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms