A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/007239.html below:

[Python-Dev] if/else and macros

[Python-Dev] if/else and macros [Python-Dev] if/else and macrosBarry Scott barry@scottb.demon.co.uk
Mon, 24 Jul 2000 21:38:15 +0100
> > > ! #define UTF8_ERROR(details) \
> > > !   if (1) {                                                  \
> > > !       if (utf8_decoding_error(&s, &p, errors, (details)))   \
> > > !           goto onError;                                     \
> > > !       continue;                                             \
> > > !   } else

Try defining the macro this way:

#define UTF8_ERROR(details) \
  do {                                                      \
      if (utf8_decoding_error(&s, &p, errors, (details)))   \
          goto onError;                                     \
      continue;                                             \
  } while(0)

	BArry




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4