Wiki Page Content

Revision 1 as of 2010-07-23 18:10:33

Clear message

DRAFT

SDL_VERSIONNUM

Use this macro to turn the convert separate version numbers into a single numeric value. green

Syntax

SDL_VERSIONNUM(X, Y, Z)                                         \
 ((X)*1000 + (Y)*100 + (Z))

green

Function Parameters

X

major version; reported in thousands place

Y

minor version; reported in hundreds place

Z

update version (patchlevel); reported in tens and ones places

Return Value

green

Code Examples

You can add your code example here

Remarks

This assumes that there will never be more than 100 patchlevels.

  • Example: (1,2,3) -> (1203)


CategoryAPI, CategoryVersion

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit