--- cvsroot/libecb/ecb.pod 2015/02/18 20:29:27 1.62 +++ cvsroot/libecb/ecb.pod 2015/02/18 20:48:59 1.64 @@ -189,6 +189,22 @@ #define SQL_LIMIT 100 sql_exec ("select * from table limit " ECB_STRINGIFY (SQL_LIMIT)); +=item ECB_STRINGIFY_EXPR (expr) + +Like C, but additionally evaluates C to make sure it +is a valid expression. This is useful to catch typos or cases where the +macro isn't available: + + #include + + ECB_STRINGIFY (EDOM); // "33" (on my system at least) + ECB_STRINGIFY_EXPR (EDOM); // "33" + + // now imagine we had a typo: + + ECB_STRINGIFY (EDAM); // "EDAM" + ECB_STRINGIFY_EXPR (EDAM); // error: EDAM undefined + =back =head2 ATTRIBUTES @@ -673,7 +689,7 @@ Evaluates to positive infinity if supported by the platform, otherwise to a truly huge number. -=item ECB_NON +=item ECB_NAN Evaluates to a quiet NAN if supported by the platform, otherwise to C.