summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authoriskolbin <[email protected]>2021-07-29 21:37:44 +0300
committerGitHub <[email protected]>2021-07-29 20:37:44 +0200
commit6ef3ab3d3ac98f2e8a77b4bd065008d2ce9d7e8f (patch)
tree2f81d79c3b8825ee29779130e951ce7b9d71aab0 /src
parenta9f6ff6fe38cff24dd4642f67d6fed42b003c879 (diff)
downloadraylib-6ef3ab3d3ac98f2e8a77b4bd065008d2ce9d7e8f.tar.gz
raylib-6ef3ab3d3ac98f2e8a77b4bd065008d2ce9d7e8f.zip
impoves raylib_parser: makes it generic, adds -d key for functions define (RLAPI for raylib.h), increases maxiumum number of fields in structs and values in enums, doubles max length of struct field names; split float3/float16 struct typedefs in raymath to allow parser to process the file (#1901)
Diffstat (limited to 'src')
-rw-r--r--src/raymath.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/raymath.h b/src/raymath.h
index cc2cda82..3b65e382 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -135,8 +135,13 @@
#endif
// NOTE: Helper types to be used instead of array return types for *ToFloat functions
-typedef struct float3 { float v[3]; } float3;
-typedef struct float16 { float v[16]; } float16;
+typedef struct float3 {
+ float v[3];
+} float3;
+
+typedef struct float16 {
+ float v[16];
+} float16;
#include <math.h> // Required for: sinf(), cosf(), tan(), atan2f(), sqrtf(), fminf(), fmaxf(), fabs()