WSLAY_EVENT_SET_ERROR(3)
π WSLAY_EVENT_SET_ERROR β the wslay girlies' guide π
okay bestie, so this one lives in the wslay manual (section 3, we love a library call) and it's genuinely so simple it's giving main character energy for like, four lines. let's get into it π«Ά
β¨ NAME β¨
wslay_event_set_error β Set error code π
β¨ SYNOPSIS β¨
#include <wslay/wslay.h>
void wslay_event_set_error(wslay_event_context_ptr ctx, int val)
β¨ DESCRIPTION β¨
so wslay_event_set_error() does exactly one thing and does it flawlessly: it sets an error code so the library knows there's an error going on. that's it. that's the whole vibe. π₯
the way that this is typically used is inside your own user defined callback functions β like, you're in there doing your callback thing and something goes wrong, and you go "bestie, tell the library" and you call this. π
and listen, if you're sitting there like "okay but WHICH error code do I even pass??" β the manual says go read the description of the callback function to know which error code you should be using. it's giving iykyk, the callback docs are where the tea is ββ¨
β¨ RETURN VALUE β¨
wslay_event_set_error() does not return value. nope, nothing, not a single one. it just sets and dips. no cap. π
β¨ AUTHOR β¨
Tatsuhiro Tsujikawa β the icon, the legend π
β¨ COPYRIGHT β¨
2024, 2015, Tatsuhiro Tsujikawa πΈ
fr fr bestie, the only thing you need to remember: it sets the error code, it returns nothing, and you're probably calling it from inside a callback. slay. π¦
and that's the whole page!! π this was wslay version @PACKAGE_VERSION@, dated Apr 22, 2024, and honestly? iconic. go forth and set your error codes responsibly. periodt. β¨π
π
π¦ where this page comes from
- ubuntu noble: libwslay-doc 1.1.1-4build1 Β· MIT
- ubuntu questing: libwslay-doc 1.1.1-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms