mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-03 15:43:51 +00:00
Document STREQ_NULLABLE and STRNEQ_NULLABLE
This commit is contained in:
parent
b59bb93129
commit
3addd15195
7
HACKING
7
HACKING
@ -496,6 +496,13 @@ following semantically named macros
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- To avoid having to check if a or b are NULL:
|
||||||
|
|
||||||
|
STREQ_NULLABLE(a, b)
|
||||||
|
STRNEQ_NULLABLE(a, b)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -585,6 +585,12 @@
|
|||||||
<li><p>For strict equality of a prefix:</p>
|
<li><p>For strict equality of a prefix:</p>
|
||||||
<pre>
|
<pre>
|
||||||
STRPREFIX(a,b)
|
STRPREFIX(a,b)
|
||||||
|
</pre>
|
||||||
|
</li>
|
||||||
|
<li><p>To avoid having to check if a or b are NULL:</p>
|
||||||
|
<pre>
|
||||||
|
STREQ_NULLABLE(a, b)
|
||||||
|
STRNEQ_NULLABLE(a, b)
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user