ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libecb/ecb.pod
(Generate patch)

Comparing cvsroot/libecb/ecb.pod (file contents):
Revision 1.62 by root, Wed Feb 18 20:29:27 2015 UTC vs.
Revision 1.64 by root, Wed Feb 18 20:48:59 2015 UTC

186it. This is mainly useful to get the contents of a macro in string form, 186it. This is mainly useful to get the contents of a macro in string form,
187e.g.: 187e.g.:
188 188
189 #define SQL_LIMIT 100 189 #define SQL_LIMIT 100
190 sql_exec ("select * from table limit " ECB_STRINGIFY (SQL_LIMIT)); 190 sql_exec ("select * from table limit " ECB_STRINGIFY (SQL_LIMIT));
191
192=item ECB_STRINGIFY_EXPR (expr)
193
194Like C<ECB_STRINGIFY>, but additionally evaluates C<expr> to make sure it
195is a valid expression. This is useful to catch typos or cases where the
196macro isn't available:
197
198 #include <errno.h>
199
200 ECB_STRINGIFY (EDOM); // "33" (on my system at least)
201 ECB_STRINGIFY_EXPR (EDOM); // "33"
202
203 // now imagine we had a typo:
204
205 ECB_STRINGIFY (EDAM); // "EDAM"
206 ECB_STRINGIFY_EXPR (EDAM); // error: EDAM undefined
191 207
192=back 208=back
193 209
194=head2 ATTRIBUTES 210=head2 ATTRIBUTES
195 211
671=item ECB_INFINITY 687=item ECB_INFINITY
672 688
673Evaluates to positive infinity if supported by the platform, otherwise to 689Evaluates to positive infinity if supported by the platform, otherwise to
674a truly huge number. 690a truly huge number.
675 691
676=item ECB_NON 692=item ECB_NAN
677 693
678Evaluates to a quiet NAN if supported by the platform, otherwise to 694Evaluates to a quiet NAN if supported by the platform, otherwise to
679C<ECB_INFINITY>. 695C<ECB_INFINITY>.
680 696
681=item float ecb_ldexpf (float x, int exp) 697=item float ecb_ldexpf (float x, int exp)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines