Hello !
Log:
Added missing void
Modified: trunk/SDL/include/SDL_version.h
— trunk/SDL/include/SDL_version.h 2009-01-04 19:36:55 UTC (rev 4351)
+++ trunk/SDL/include/SDL_version.h 2009-01-04 23:36:53 UTC (rev 4352)
@@ -133,10 +133,10 @@
extern DECLSPEC void SDLCALL SDL_GetVersion(SDL_version * ver);
/**
-
- \fn int SDL_GetRevision()
-
- \fn int SDL_GetRevision(void)
- \brief Get the code revision of SDL that is linked against your program.
*/
-extern DECLSPEC int SDLCALL SDL_GetRevision();
+extern DECLSPEC int SDLCALL SDL_GetRevision(void);
Is it in some way better to have a (void) instead of () ?
CU
Log:
Added missing void
Modified: trunk/SDL/include/SDL_version.h
===================================================================
— trunk/SDL/include/SDL_version.h 2009-01-04 19:36:55 UTC (rev 4351)
+++ trunk/SDL/include/SDL_version.h 2009-01-04 23:36:53 UTC (rev 4352)
@@ -133,10 +133,10 @@
extern DECLSPEC void SDLCALL SDL_GetVersion(SDL_version * ver);
/**
-
- \fn int SDL_GetRevision()
-
- \fn int SDL_GetRevision(void)
- \brief Get the code revision of SDL that is linked against your
program.
*/
-extern DECLSPEC int SDLCALL SDL_GetRevision();
+extern DECLSPEC int SDLCALL SDL_GetRevision(void);
Is it in some way better to have a (void) instead of () ?
CU
Here is a good explanation:
The main reason is to achieve consistent interpretation of headers that are
shared between C and C++.
In C:
void foo() means “a function foo taking an unspecified number of arguments
of unspecified type”
void foo(void) means “a function foo taking no arguments”
In C++:
void foo() means “a function foo taking no arguments”
void foo(void) means “a function foo taking no arguments”> ----- Original Message -----
From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Torsten Giebl
Sent: Sunday, January 04, 2009 5:42 PM
To: sdl at lists.libsdl.org
Subject: Re: [SDL] [SVN] r4352 - in trunk/SDL: include src
Hello !
The main reason is to achieve consistent interpretation of headers that are
shared between C and C++.
In C:
void foo() means “a function foo taking an unspecified number of arguments
of unspecified type”
void foo(void) means “a function foo taking no arguments”
In C++:
void foo() means “a function foo taking no arguments”
void foo(void) means “a function foo taking no arguments”
Thanks for the explanation !
CU