|
⇤ ← Revision 1 as of 2010-07-23 18:10:33
Size: 1311
Comment: create page, add content (7/14 changeset 4529)
|
← Revision 2 as of 2010-08-29 20:12:39 ⇥
Size: 815
Comment: update content (w/ Sam); remove 'draft' note
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
| Line 6: | Line 5: |
| Use this macro to ,,turn the,, ^convert separate^ version numbers into a ^single^ numeric value. <<Color2(green,Should it be specified that this is the compiled or current version?)>> | Use this macro to convert separate version components into a single numeric value. |
| Line 12: | Line 11: |
| SDL_VERSIONNUM(X, Y, Z) \ ((X)*1000 + (Y)*100 + (Z)) |
SDL_VERSIONNUM(X, Y, Z) |
| Line 15: | Line 13: |
<<Color2(green,Does the backslash way off to the right belong there? That is how it is in the header.)>> |
|
| Line 22: | Line 18: |
== Return Value == <<Color2(green,Is the numerical value that results from this macro a return value or is this section empty?)>> |
|
| Line 33: | Line 26: |
| ''Example:'' {{{(1,2,3) -> (1203)}}} | ''Example:'' {{{SDL_VERSIONNUM(1,2,3) -> (1203)}}} |
| Line 37: | Line 30: |
| .[[SDL_VERSION]] | |
| Line 39: | Line 31: |
== Related Functions == .[[SDL_GetVersion]] ??? |
SDL_VERSIONNUM
Use this macro to convert separate version components into a single numeric value.
Syntax
SDL_VERSIONNUM(X, Y, Z)
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 |
Code Examples
You can add your code example here
Remarks
This assumes that there will never be more than 100 patchlevels.
Example: SDL_VERSIONNUM(1,2,3) -> (1203)
