wikiheaders: Bind #defines below a function to it, like typedefs.

This effectively adds the property symbols for various functions to the
function's wiki page.
This commit is contained in:
Ryan C. Gordon
2024-05-02 12:49:30 -04:00
parent 0178b19489
commit 9f842e9b5a
4 changed files with 62 additions and 2 deletions

View File

@@ -2389,6 +2389,8 @@ extern DECLSPEC char *SDLCALL SDL_iconv_string(const char *tocode,
const char *fromcode,
const char *inbuf,
size_t inbytesleft);
/* Some helper macros for common cases... */
#define SDL_iconv_utf8_locale(S) SDL_iconv_string("", "UTF-8", S, SDL_strlen(S)+1)
#define SDL_iconv_utf8_ucs2(S) (Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1)
#define SDL_iconv_utf8_ucs4(S) (Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1)