Corrected keywords usage
This commit is contained in:
parent
3884716948
commit
c46c0fc652
3 changed files with 9 additions and 27 deletions
|
@ -142,10 +142,6 @@ typedef struct PhysicBodyData {
|
||||||
bool enabled;
|
bool enabled;
|
||||||
} PhysicBodyData, *PhysicBody;
|
} PhysicBodyData, *PhysicBody;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" { // Prevents name mangling of functions
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module Functions Declaration
|
// Module Functions Declaration
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
@ -161,10 +157,6 @@ PHYSACDEF void ApplyForceAtPosition(Vector2 position, float force, float radius)
|
||||||
|
|
||||||
PHYSACDEF Rectangle TransformToRectangle(Transform transform); // Convert Transform data type to Rectangle (position and scale)
|
PHYSACDEF Rectangle TransformToRectangle(Transform transform); // Convert Transform data type to Rectangle (position and scale)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // PHYSAC_H
|
#endif // PHYSAC_H
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -239,10 +239,6 @@ typedef enum GuiProperty {
|
||||||
TEXTBOX_TEXT_FONTSIZE
|
TEXTBOX_TEXT_FONTSIZE
|
||||||
} GuiProperty;
|
} GuiProperty;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Global Variables Definition
|
// Global Variables Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
@ -369,10 +365,6 @@ RAYGUIDEF void LoadGuiStyle(const char *fileName); // Loa
|
||||||
RAYGUIDEF void SetStyleProperty(int guiProperty, int value); // Set one style property
|
RAYGUIDEF void SetStyleProperty(int guiProperty, int value); // Set one style property
|
||||||
RAYGUIDEF int GetStyleProperty(int guiProperty); // Get one style property
|
RAYGUIDEF int GetStyleProperty(int guiProperty); // Get one style property
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // RAYGUI_H
|
#endif // RAYGUI_H
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,10 +47,16 @@
|
||||||
#include "raylib.h" // Required for structs: Vector3, Matrix
|
#include "raylib.h" // Required for structs: Vector3, Matrix
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(RAYMATH_EXTERN_INLINE)
|
#ifdef __cplusplus
|
||||||
#define RMDEF extern inline
|
#define RMEXTERN extern "C" // Functions visible from other files (no name mangling of functions in C++)
|
||||||
#else
|
#else
|
||||||
#define RMDEF extern
|
#define RMEXTERN extern // Functions visible from other files
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(RAYMATH_EXTERN_INLINE)
|
||||||
|
#define RMDEF RMEXTERN inline // Functions are embeded inline (compiler generated code)
|
||||||
|
#else
|
||||||
|
#define RMDEF RMEXTERN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
@ -105,10 +111,6 @@ typedef struct Quaternion {
|
||||||
|
|
||||||
#ifndef RAYMATH_EXTERN_INLINE
|
#ifndef RAYMATH_EXTERN_INLINE
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
// Functions Declaration to work with Vector3
|
// Functions Declaration to work with Vector3
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
|
@ -166,10 +168,6 @@ RMDEF Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle); // Returns
|
||||||
RMDEF void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle); // Returns the rotation angle and axis for a given quaternion
|
RMDEF void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle); // Returns the rotation angle and axis for a given quaternion
|
||||||
RMDEF void QuaternionTransform(Quaternion *q, Matrix mat); // Transform a quaternion given a transformation matrix
|
RMDEF void QuaternionTransform(Quaternion *q, Matrix mat); // Transform a quaternion given a transformation matrix
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // notdef RAYMATH_EXTERN_INLINE
|
#endif // notdef RAYMATH_EXTERN_INLINE
|
||||||
|
|
||||||
#endif // RAYMATH_H
|
#endif // RAYMATH_H
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue