Re: KDE and SDL2: some problem with syntax analyser

René J.V. Bertin <[email protected]>
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <2529587.3DbukOO3od@bola>
On Wednesday November 21 2018 15:15:21 Luca Provenzani wrote:

>Here the definition of the function/macro SDL_LoadBMP in SDL_surface.h:
>
>/extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW(SDL_RWops * src,/
>/                                                    int freesrc);/
>
...
>/#define SDL_LoadBMP(file)   SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)/
>
>.. but, I don't see nothing really strange..

Not for human interpretation, no (which also has no problems with your use of double negation ;)).
This is a macro though, resolving to a definition that probably has 2  macros in it (DECLSPEC and SDLCALL). That other thread I referred to does mention issues with macro parsing. It would be interesting if you could check whether your problem symbols are all defined as macros or not.

R.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.