mirror of https://gitee.com/openkylin/libvirt.git
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>
|
||||
<pre>
|
||||
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>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue