Merge branch 'master' into master

This commit is contained in:
Ray 2026-02-10 18:10:38 +01:00 • committed by GitHub
commit a81828e910
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 35143 additions and 8199 deletions

View file

@ -1,4 +1,4 @@
Copyright (c) 2021-2025 Ramon Santamaria (@raysan5)
Copyright (c) 2021-2026 Ramon Santamaria (@raysan5)
This software is provided "as-is", without any express or implied warranty. In no event
will the authors be held liable for any damages arising from the use of this software.

View file

@ -19,7 +19,7 @@ Check `rlparser.c` for details about those structs.
// //
// more info and bugs-report: github.com/raysan5/raylib/tools/rlparser //
// //
// Copyright (c) 2021-2025 Ramon Santamaria (@raysan5) //
// Copyright (c) 2021-2026 Ramon Santamaria (@raysan5) //
// //
//////////////////////////////////////////////////////////////////////////////////

View file

@ -40,7 +40,7 @@
"name": "RLAPI",
"type": "UNKNOWN",
"value": "__declspec(dllexport)",
"description": "We are building the library as a Win32 shared library (.dll)"
"description": "Building the library as a Win32 shared library (.dll)"
},
{
"name": "PI",
@ -769,22 +769,22 @@
{
"type": "Vector2",
"name": "offset",
"description": "Camera offset (displacement from target)"
"description": "Camera offset (screen space offset from window origin)"
},
{
"type": "Vector2",
"name": "target",
"description": "Camera target (rotation and zoom origin)"
"description": "Camera target (world space target point that is mapped to screen space offset)"
},
{
"type": "float",
"name": "rotation",
"description": "Camera rotation in degrees"
"description": "Camera rotation in degrees (pivots around target)"
},
{
"type": "float",
"name": "zoom",
"description": "Camera zoom (scaling), should be 1.0f by default"
"description": "Camera zoom (scaling around target), must not be set to 0, set to 1.0f for no scale"
}
]
},
@ -1029,6 +1029,11 @@
"name": "ModelAnimation",
"description": "ModelAnimation",
"fields": [
{
"type": "char[32]",
"name": "name",
"description": "Animation name"
},
{
"type": "int",
"name": "boneCount",
@ -1048,11 +1053,6 @@
"type": "Transform **",
"name": "framePoses",
"description": "Poses array by frame"
},
{
"type": "char[32]",
"name": "name",
"description": "Animation name"
}
]
},
@ -1324,11 +1324,6 @@
"name": "FilePathList",
"description": "File path list",
"fields": [
{
"type": "unsigned int",
"name": "capacity",
"description": "Filepaths max entries"
},
{
"type": "unsigned int",
"name": "count",
@ -4191,6 +4186,17 @@
}
]
},
{
"name": "SetTraceLogLevel",
"description": "Set the current threshold (minimum) log level",
"returnType": "void",
"params": [
{
"type": "int",
"name": "logLevel"
}
]
},
{
"name": "TraceLog",
"description": "Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)",
@ -4211,13 +4217,13 @@
]
},
{
"name": "SetTraceLogLevel",
"description": "Set the current threshold (minimum) log level",
"name": "SetTraceLogCallback",
"description": "Set custom trace log",
"returnType": "void",
"params": [
{
"type": "int",
"name": "logLevel"
"type": "TraceLogCallback",
"name": "callback"
}
]
},
@ -4258,61 +4264,6 @@
}
]
},
{
"name": "SetTraceLogCallback",
"description": "Set custom trace log",
"returnType": "void",
"params": [
{
"type": "TraceLogCallback",
"name": "callback"
}
]
},
{
"name": "SetLoadFileDataCallback",
"description": "Set custom file binary data loader",
"returnType": "void",
"params": [
{
"type": "LoadFileDataCallback",
"name": "callback"
}
]
},
{
"name": "SetSaveFileDataCallback",
"description": "Set custom file binary data saver",
"returnType": "void",
"params": [
{
"type": "SaveFileDataCallback",
"name": "callback"
}
]
},
{
"name": "SetLoadFileTextCallback",
"description": "Set custom file text data loader",
"returnType": "void",
"params": [
{
"type": "LoadFileTextCallback",
"name": "callback"
}
]
},
{
"name": "SetSaveFileTextCallback",
"description": "Set custom file text data saver",
"returnType": "void",
"params": [
{
"type": "SaveFileTextCallback",
"name": "callback"
}
]
},
{
"name": "LoadFileData",
"description": "Load file data as byte array (read)",
@ -4414,6 +4365,50 @@
}
]
},
{
"name": "SetLoadFileDataCallback",
"description": "Set custom file binary data loader",
"returnType": "void",
"params": [
{
"type": "LoadFileDataCallback",
"name": "callback"
}
]
},
{
"name": "SetSaveFileDataCallback",
"description": "Set custom file binary data saver",
"returnType": "void",
"params": [
{
"type": "SaveFileDataCallback",
"name": "callback"
}
]
},
{
"name": "SetLoadFileTextCallback",
"description": "Set custom file text data loader",
"returnType": "void",
"params": [
{
"type": "LoadFileTextCallback",
"name": "callback"
}
]
},
{
"name": "SetSaveFileTextCallback",
"description": "Set custom file text data saver",
"returnType": "void",
"params": [
{
"type": "SaveFileTextCallback",
"name": "callback"
}
]
},
{
"name": "FileRename",
"description": "Rename file (if exists)",
@ -4646,7 +4641,7 @@
"params": [
{
"type": "const char *",
"name": "dir"
"name": "dirPath"
}
]
},
@ -4734,6 +4729,36 @@
}
]
},
{
"name": "GetDirectoryFileCount",
"description": "Get the file count in a directory",
"returnType": "unsigned int",
"params": [
{
"type": "const char *",
"name": "dirPath"
}
]
},
{
"name": "GetDirectoryFileCountEx",
"description": "Get the file count in a directory with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result",
"returnType": "unsigned int",
"params": [
{
"type": "const char *",
"name": "basePath"
},
{
"type": "const char *",
"name": "filter"
},
{
"type": "bool",
"name": "scanSubdirs"
}
]
},
{
"name": "CompressData",
"description": "Compress data (DEFLATE algorithm), memory must be MemFree()",
@ -11772,7 +11797,7 @@
},
{
"name": "UpdateSound",
"description": "Update sound buffer with new data (data and frame count should fit in sound)",
"description": "Update sound buffer with new data (default data format: 32 bit float, stereo)",
"returnType": "void",
"params": [
{
@ -11939,7 +11964,7 @@
},
{
"name": "SetSoundPan",
"description": "Set pan for a sound (0.5 is center)",
"description": "Set pan for a sound (-1.0 left, 0.0 center, 1.0 right)",
"returnType": "void",
"params": [
{
@ -12192,7 +12217,7 @@
},
{
"name": "SetMusicPan",
"description": "Set pan for a music (0.5 is center)",
"description": "Set pan for a music (-1.0 left, 0.0 center, 1.0 right)",
"returnType": "void",
"params": [
{

View file

@ -40,7 +40,7 @@ return {
name = "RLAPI",
type = "UNKNOWN",
value = "__declspec(dllexport)",
description = "We are building the library as a Win32 shared library (.dll)"
description = "Building the library as a Win32 shared library (.dll)"
},
{
name = "PI",
@ -769,22 +769,22 @@ return {
{
type = "Vector2",
name = "offset",
description = "Camera offset (displacement from target)"
description = "Camera offset (screen space offset from window origin)"
},
{
type = "Vector2",
name = "target",
description = "Camera target (rotation and zoom origin)"
description = "Camera target (world space target point that is mapped to screen space offset)"
},
{
type = "float",
name = "rotation",
description = "Camera rotation in degrees"
description = "Camera rotation in degrees (pivots around target)"
},
{
type = "float",
name = "zoom",
description = "Camera zoom (scaling), should be 1.0f by default"
description = "Camera zoom (scaling around target), must not be set to 0, set to 1.0f for no scale"
}
}
},
@ -1029,6 +1029,11 @@ return {
name = "ModelAnimation",
description = "ModelAnimation",
fields = {
{
type = "char[32]",
name = "name",
description = "Animation name"
},
{
type = "int",
name = "boneCount",
@ -1048,11 +1053,6 @@ return {
type = "Transform **",
name = "framePoses",
description = "Poses array by frame"
},
{
type = "char[32]",
name = "name",
description = "Animation name"
}
}
},
@ -1324,11 +1324,6 @@ return {
name = "FilePathList",
description = "File path list",
fields = {
{
type = "unsigned int",
name = "capacity",
description = "Filepaths max entries"
},
{
type = "unsigned int",
name = "count",
@ -3864,6 +3859,14 @@ return {
{type = "const char *", name = "url"}
}
},
{
name = "SetTraceLogLevel",
description = "Set the current threshold (minimum) log level",
returnType = "void",
params = {
{type = "int", name = "logLevel"}
}
},
{
name = "TraceLog",
description = "Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)",
@ -3875,11 +3878,11 @@ return {
}
},
{
name = "SetTraceLogLevel",
description = "Set the current threshold (minimum) log level",
name = "SetTraceLogCallback",
description = "Set custom trace log",
returnType = "void",
params = {
{type = "int", name = "logLevel"}
{type = "TraceLogCallback", name = "callback"}
}
},
{
@ -3907,46 +3910,6 @@ return {
{type = "void *", name = "ptr"}
}
},
{
name = "SetTraceLogCallback",
description = "Set custom trace log",
returnType = "void",
params = {
{type = "TraceLogCallback", name = "callback"}
}
},
{
name = "SetLoadFileDataCallback",
description = "Set custom file binary data loader",
returnType = "void",
params = {
{type = "LoadFileDataCallback", name = "callback"}
}
},
{
name = "SetSaveFileDataCallback",
description = "Set custom file binary data saver",
returnType = "void",
params = {
{type = "SaveFileDataCallback", name = "callback"}
}
},
{
name = "SetLoadFileTextCallback",
description = "Set custom file text data loader",
returnType = "void",
params = {
{type = "LoadFileTextCallback", name = "callback"}
}
},
{
name = "SetSaveFileTextCallback",
description = "Set custom file text data saver",
returnType = "void",
params = {
{type = "SaveFileTextCallback", name = "callback"}
}
},
{
name = "LoadFileData",
description = "Load file data as byte array (read)",
@ -4009,6 +3972,38 @@ return {
{type = "const char *", name = "text"}
}
},
{
name = "SetLoadFileDataCallback",
description = "Set custom file binary data loader",
returnType = "void",
params = {
{type = "LoadFileDataCallback", name = "callback"}
}
},
{
name = "SetSaveFileDataCallback",
description = "Set custom file binary data saver",
returnType = "void",
params = {
{type = "SaveFileDataCallback", name = "callback"}
}
},
{
name = "SetLoadFileTextCallback",
description = "Set custom file text data loader",
returnType = "void",
params = {
{type = "LoadFileTextCallback", name = "callback"}
}
},
{
name = "SetSaveFileTextCallback",
description = "Set custom file text data saver",
returnType = "void",
params = {
{type = "SaveFileTextCallback", name = "callback"}
}
},
{
name = "FileRename",
description = "Rename file (if exists)",
@ -4167,7 +4162,7 @@ return {
description = "Change working directory, return true on success",
returnType = "bool",
params = {
{type = "const char *", name = "dir"}
{type = "const char *", name = "dirPath"}
}
},
{
@ -4230,6 +4225,24 @@ return {
{type = "FilePathList", name = "files"}
}
},
{
name = "GetDirectoryFileCount",
description = "Get the file count in a directory",
returnType = "unsigned int",
params = {
{type = "const char *", name = "dirPath"}
}
},
{
name = "GetDirectoryFileCountEx",
description = "Get the file count in a directory with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result",
returnType = "unsigned int",
params = {
{type = "const char *", name = "basePath"},
{type = "const char *", name = "filter"},
{type = "bool", name = "scanSubdirs"}
}
},
{
name = "CompressData",
description = "Compress data (DEFLATE algorithm), memory must be MemFree()",
@ -8016,7 +8029,7 @@ return {
},
{
name = "UpdateSound",
description = "Update sound buffer with new data (data and frame count should fit in sound)",
description = "Update sound buffer with new data (default data format: 32 bit float, stereo)",
returnType = "void",
params = {
{type = "Sound", name = "sound"},
@ -8126,7 +8139,7 @@ return {
},
{
name = "SetSoundPan",
description = "Set pan for a sound (0.5 is center)",
description = "Set pan for a sound (-1.0 left, 0.0 center, 1.0 right)",
returnType = "void",
params = {
{type = "Sound", name = "sound"},
@ -8289,7 +8302,7 @@ return {
},
{
name = "SetMusicPan",
description = "Set pan for a music (0.5 is center)",
description = "Set pan for a music (-1.0 left, 0.0 center, 1.0 right)",
returnType = "void",
params = {
{type = "Music", name = "music"},

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,7 @@
<Define name="RAYLIB_VERSION_PATCH" type="INT" value="0" desc="" />
<Define name="RAYLIB_VERSION" type="STRING" value="5.6-dev" desc="" />
<Define name="__declspec(x)" type="MACRO" value="__attribute__((x))" desc="" />
<Define name="RLAPI" type="UNKNOWN" value="__declspec(dllexport)" desc="We are building the library as a Win32 shared library (.dll)" />
<Define name="RLAPI" type="UNKNOWN" value="__declspec(dllexport)" desc="Building the library as a Win32 shared library (.dll)" />
<Define name="PI" type="FLOAT" value="3.14159265358979323846" desc="" />
<Define name="DEG2RAD" type="FLOAT_MATH" value="(PI/180.0f)" desc="" />
<Define name="RAD2DEG" type="FLOAT_MATH" value="(180.0f/PI)" desc="" />
@ -155,10 +155,10 @@
<Field type="int" name="projection" desc="Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC" />
</Struct>
<Struct name="Camera2D" fieldCount="4" desc="Camera2D, defines position/orientation in 2d space">
<Field type="Vector2" name="offset" desc="Camera offset (displacement from target)" />
<Field type="Vector2" name="target" desc="Camera target (rotation and zoom origin)" />
<Field type="float" name="rotation" desc="Camera rotation in degrees" />
<Field type="float" name="zoom" desc="Camera zoom (scaling), should be 1.0f by default" />
<Field type="Vector2" name="offset" desc="Camera offset (screen space offset from window origin)" />
<Field type="Vector2" name="target" desc="Camera target (world space target point that is mapped to screen space offset)" />
<Field type="float" name="rotation" desc="Camera rotation in degrees (pivots around target)" />
<Field type="float" name="zoom" desc="Camera zoom (scaling around target), must not be set to 0, set to 1.0f for no scale" />
</Struct>
<Struct name="Mesh" fieldCount="17" desc="Mesh, vertex data and vao/vbo">
<Field type="int" name="vertexCount" desc="Number of vertices stored in arrays" />
@ -214,11 +214,11 @@
<Field type="Transform *" name="bindPose" desc="Bones base transformation (pose)" />
</Struct>
<Struct name="ModelAnimation" fieldCount="5" desc="ModelAnimation">
<Field type="char[32]" name="name" desc="Animation name" />
<Field type="int" name="boneCount" desc="Number of bones" />
<Field type="int" name="frameCount" desc="Number of animation frames" />
<Field type="BoneInfo *" name="bones" desc="Bones information (skeleton)" />
<Field type="Transform **" name="framePoses" desc="Poses array by frame" />
<Field type="char[32]" name="name" desc="Animation name" />
</Struct>
<Struct name="Ray" fieldCount="2" desc="Ray, ray for raycasting">
<Field type="Vector3" name="position" desc="Ray position (origin)" />
@ -280,8 +280,7 @@
<Field type="float[2]" name="scale" desc="VR distortion scale" />
<Field type="float[2]" name="scaleIn" desc="VR distortion scale in" />
</Struct>
<Struct name="FilePathList" fieldCount="3" desc="File path list">
<Field type="unsigned int" name="capacity" desc="Filepaths max entries" />
<Struct name="FilePathList" fieldCount="2" desc="File path list">
<Field type="unsigned int" name="count" desc="Filepaths entries count" />
<Field type="char **" name="paths" desc="Filepaths entries" />
</Struct>
@ -988,13 +987,16 @@
<Function name="OpenURL" retType="void" paramCount="1" desc="Open URL with default system browser (if available)">
<Param type="const char *" name="url" desc="" />
</Function>
<Function name="SetTraceLogLevel" retType="void" paramCount="1" desc="Set the current threshold (minimum) log level">
<Param type="int" name="logLevel" desc="" />
</Function>
<Function name="TraceLog" retType="void" paramCount="3" desc="Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)">
<Param type="int" name="logLevel" desc="" />
<Param type="const char *" name="text" desc="" />
<Param type="..." name="args" desc="" />
</Function>
<Function name="SetTraceLogLevel" retType="void" paramCount="1" desc="Set the current threshold (minimum) log level">
<Param type="int" name="logLevel" desc="" />
<Function name="SetTraceLogCallback" retType="void" paramCount="1" desc="Set custom trace log">
<Param type="TraceLogCallback" name="callback" desc="" />
</Function>
<Function name="MemAlloc" retType="void *" paramCount="1" desc="Internal memory allocator">
<Param type="unsigned int" name="size" desc="" />
@ -1006,21 +1008,6 @@
<Function name="MemFree" retType="void" paramCount="1" desc="Internal memory free">
<Param type="void *" name="ptr" desc="" />
</Function>
<Function name="SetTraceLogCallback" retType="void" paramCount="1" desc="Set custom trace log">
<Param type="TraceLogCallback" name="callback" desc="" />
</Function>
<Function name="SetLoadFileDataCallback" retType="void" paramCount="1" desc="Set custom file binary data loader">
<Param type="LoadFileDataCallback" name="callback" desc="" />
</Function>
<Function name="SetSaveFileDataCallback" retType="void" paramCount="1" desc="Set custom file binary data saver">
<Param type="SaveFileDataCallback" name="callback" desc="" />
</Function>
<Function name="SetLoadFileTextCallback" retType="void" paramCount="1" desc="Set custom file text data loader">
<Param type="LoadFileTextCallback" name="callback" desc="" />
</Function>
<Function name="SetSaveFileTextCallback" retType="void" paramCount="1" desc="Set custom file text data saver">
<Param type="SaveFileTextCallback" name="callback" desc="" />
</Function>
<Function name="LoadFileData" retType="unsigned char *" paramCount="2" desc="Load file data as byte array (read)">
<Param type="const char *" name="fileName" desc="" />
<Param type="int *" name="dataSize" desc="" />
@ -1048,6 +1035,18 @@
<Param type="const char *" name="fileName" desc="" />
<Param type="const char *" name="text" desc="" />
</Function>
<Function name="SetLoadFileDataCallback" retType="void" paramCount="1" desc="Set custom file binary data loader">
<Param type="LoadFileDataCallback" name="callback" desc="" />
</Function>
<Function name="SetSaveFileDataCallback" retType="void" paramCount="1" desc="Set custom file binary data saver">
<Param type="SaveFileDataCallback" name="callback" desc="" />
</Function>
<Function name="SetLoadFileTextCallback" retType="void" paramCount="1" desc="Set custom file text data loader">
<Param type="LoadFileTextCallback" name="callback" desc="" />
</Function>
<Function name="SetSaveFileTextCallback" retType="void" paramCount="1" desc="Set custom file text data saver">
<Param type="SaveFileTextCallback" name="callback" desc="" />
</Function>
<Function name="FileRename" retType="int" paramCount="2" desc="Rename file (if exists)">
<Param type="const char *" name="fileName" desc="" />
<Param type="const char *" name="fileRename" desc="" />
@ -1111,7 +1110,7 @@
<Param type="const char *" name="dirPath" desc="" />
</Function>
<Function name="ChangeDirectory" retType="bool" paramCount="1" desc="Change working directory, return true on success">
<Param type="const char *" name="dir" desc="" />
<Param type="const char *" name="dirPath" desc="" />
</Function>
<Function name="IsPathFile" retType="bool" paramCount="1" desc="Check if a given path is a file or a directory">
<Param type="const char *" name="path" desc="" />
@ -1137,6 +1136,14 @@
<Function name="UnloadDroppedFiles" retType="void" paramCount="1" desc="Unload dropped filepaths">
<Param type="FilePathList" name="files" desc="" />
</Function>
<Function name="GetDirectoryFileCount" retType="unsigned int" paramCount="1" desc="Get the file count in a directory">
<Param type="const char *" name="dirPath" desc="" />
</Function>
<Function name="GetDirectoryFileCountEx" retType="unsigned int" paramCount="3" desc="Get the file count in a directory with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result">
<Param type="const char *" name="basePath" desc="" />
<Param type="const char *" name="filter" desc="" />
<Param type="bool" name="scanSubdirs" desc="" />
</Function>
<Function name="CompressData" retType="unsigned char *" paramCount="3" desc="Compress data (DEFLATE algorithm), memory must be MemFree()">
<Param type="const unsigned char *" name="data" desc="" />
<Param type="int" name="dataSize" desc="" />
@ -3009,7 +3016,7 @@
<Function name="IsSoundValid" retType="bool" paramCount="1" desc="Checks if a sound is valid (data loaded and buffers initialized)">
<Param type="Sound" name="sound" desc="" />
</Function>
<Function name="UpdateSound" retType="void" paramCount="3" desc="Update sound buffer with new data (data and frame count should fit in sound)">
<Function name="UpdateSound" retType="void" paramCount="3" desc="Update sound buffer with new data (default data format: 32 bit float, stereo)">
<Param type="Sound" name="sound" desc="" />
<Param type="const void *" name="data" desc="" />
<Param type="int" name="sampleCount" desc="" />
@ -3054,7 +3061,7 @@
<Param type="Sound" name="sound" desc="" />
<Param type="float" name="pitch" desc="" />
</Function>
<Function name="SetSoundPan" retType="void" paramCount="2" desc="Set pan for a sound (0.5 is center)">
<Function name="SetSoundPan" retType="void" paramCount="2" desc="Set pan for a sound (-1.0 left, 0.0 center, 1.0 right)">
<Param type="Sound" name="sound" desc="" />
<Param type="float" name="pan" desc="" />
</Function>
@ -3122,7 +3129,7 @@
<Param type="Music" name="music" desc="" />
<Param type="float" name="pitch" desc="" />
</Function>
<Function name="SetMusicPan" retType="void" paramCount="2" desc="Set pan for a music (0.5 is center)">
<Function name="SetMusicPan" retType="void" paramCount="2" desc="Set pan for a music (-1.0 left, 0.0 center, 1.0 right)">
<Param type="Music" name="music" desc="" />
<Param type="float" name="pan" desc="" />
</Function>

Binary file not shown.

View file

@ -52,7 +52,7 @@
raylib-parser is licensed under an unmodified zlib/libpng license, which is an OSI-certified,
BSD-like license that allows static linking with closed source software:
Copyright (c) 2021-2025 Ramon Santamaria (@raysan5)
Copyright (c) 2021-2026 Ramon Santamaria (@raysan5)
**********************************************************************************************/
@ -198,7 +198,7 @@ static void ExportParsedData(const char *fileName, int format); // Export parsed
//----------------------------------------------------------------------------------
// Program main entry point
//----------------------------------------------------------------------------------
int main(int argc, char* argv[])
int main(int argc, char *argv[])
{
if (argc > 1) ProcessCommandLine(argc, argv);
@ -260,7 +260,7 @@ int main(int argc, char* argv[])
for (int i = 0; i < lineCount; i++)
{
int j = 0;
while ((lines[i][j] == ' ') || (lines[i][j] == '\t')) j++; // skip spaces and tabs in the begining
while ((lines[i][j] == ' ') || (lines[i][j] == '\t')) j++; // skip spaces and tabs in the beginning
// Read define line
if (IsTextEqual(lines[i]+j, "#define ", 8))
{
@ -385,7 +385,7 @@ int main(int argc, char* argv[])
char *linePtr = lines[defineLines[i]];
int j = 0;
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs in the begining
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs in the beginning
j += 8; // Skip "#define "
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs after "#define "
@ -721,7 +721,8 @@ int main(int argc, char* argv[])
char v = structs[i].fieldType[originalIndex][k];
if ((v == '*') || (v == ' ') || (v == ','))
{
if (nameEnd != -1) {
if (nameEnd != -1)
{
// Don't copy to last additional field
if (fieldsRemaining != additionalFields)
{
@ -1011,7 +1012,8 @@ int main(int argc, char* argv[])
((linePtr[c - 4] == 'v') &&
(linePtr[c - 3] == 'o') &&
(linePtr[c - 2] == 'i') &&
(linePtr[c - 1] == 'd'))) {
(linePtr[c - 1] == 'd')))
{
break;
}
@ -1084,7 +1086,7 @@ static void ShowCommandLineInfo(void)
printf("// //\n");
printf("// more info and bugs-report: github.com/raysan5/raylib/tools/rlparser //\n");
printf("// //\n");
printf("// Copyright (c) 2021-2025 Ramon Santamaria (@raysan5) //\n");
printf("// Copyright (c) 2021-2026 Ramon Santamaria (@raysan5) //\n");
printf("// //\n");
printf("//////////////////////////////////////////////////////////////////////////////////\n\n");