Documentation useful when developing or debugging Concord itself.
More...
Documentation useful when developing or debugging Concord itself.
◆ CLIENT
Get client from its nested field.
◆ CCORD_EXPECT
#define CCORD_EXPECT |
( |
|
client, |
|
|
|
expect, |
|
|
|
code, |
|
|
|
reason |
|
) |
| |
Value: do { \
if (!(expect)) { \
logconf_error(&(client)->conf, "Expected: " #expect ": " reason); \
return code; \
} \
} while (0)
log and return code
if expect
condition is false
- Parameters
-
[in] | client | the Discord client |
[in] | expect | the expected outcome |
[in] | code | return CCORDcode error code |
[in] | reason | for return |
- Returns
- the provided CCORDcode
code
parameter
◆ ASSERT_NOT_OOB
#define ASSERT_NOT_OOB |
( |
|
nbytes, |
|
|
|
destsz |
|
) |
| ASSERT_S((size_t)nbytes < (size_t)destsz, "Out of bounds write attempt"); |
Shortcut for checking OOB-write attempts.
- Note
- unsigned values are expected
- Parameters
-
[in] | nbytes | amount of bytes to be written |
[in] | destsz | size of dest in bytes |
◆ DISCORD_ENDPT_LEN
#define DISCORD_ENDPT_LEN 512 |
URL endpoint threshold length
◆ DISCORD_ROUTE_LEN
#define DISCORD_ROUTE_LEN 256 |
Route's unique key threshold length
◆ discord_dup_shutdown_fd()
int discord_dup_shutdown_fd |
( |
void |
| ) |
|