diff options
| author | Ray <[email protected]> | 2018-10-16 10:53:01 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-10-16 10:53:01 +0200 |
| commit | b8b8936cd780b34edb2899eb32b756a1aebef9d3 (patch) | |
| tree | 9425ee9c0a68a75f60c7d54da9601aceabef4df2 /src/raylib.h | |
| parent | f56617392705b47f6108ddf024e2b803e48bcb3f (diff) | |
| download | raylib-b8b8936cd780b34edb2899eb32b756a1aebef9d3.tar.gz raylib-b8b8936cd780b34edb2899eb32b756a1aebef9d3.zip | |
Review defines
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/raylib.h b/src/raylib.h index 8aa5e7be..42bc38e7 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -311,7 +311,7 @@ // NOTE: MSC C++ compiler does not support compound literals (C99 feature) // Plain structures in C++ (without constructors) can be initialized from { } initializers. -#ifdef __cplusplus +#if defined(__cplusplus) #define CLITERAL #else #define CLITERAL (Color) @@ -786,7 +786,7 @@ typedef enum { // Callbacks to be implemented by users typedef void (*TraceLogCallback)(int msgType, const char *text, va_list args); -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { // Prevents name mangling of functions #endif @@ -868,9 +868,9 @@ RLAPI void TakeScreenshot(const char *fileName); // Takes a scr RLAPI int GetRandomValue(int min, int max); // Returns a random value between min and max (both included) // Files management functions +RLAPI bool FileExists(const char *fileName); // Check if file exists RLAPI bool IsFileExtension(const char *fileName, const char *ext);// Check file extension RLAPI const char *GetExtension(const char *fileName); // Get pointer to extension for a filename string -RLAPI bool FileExists(const char *fileName); // Return true if file exists RLAPI const char *GetFileName(const char *filePath); // Get pointer to filename for a path string RLAPI const char *GetFileNameWithoutExt(const char *filePath); // Get filename string without extension (memory should be freed) RLAPI const char *GetDirectoryPath(const char *fileName); // Get full path for a given fileName (uses static string) @@ -1277,7 +1277,7 @@ RLAPI void StopAudioStream(AudioStream stream); // Stop au RLAPI void SetAudioStreamVolume(AudioStream stream, float volume); // Set volume for audio stream (1.0 is max level) RLAPI void SetAudioStreamPitch(AudioStream stream, float pitch); // Set pitch for audio stream (1.0 is base level) -#ifdef __cplusplus +#if defined(__cplusplus) } #endif |
