raysan5 / rini

A simple and easy-to-use config init files reader and writer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rini_load_config's implementation is marked as static

ERmilburn02 opened this issue · comments

In the implementation of rini_load_config, the function is marked as static. This is preventing it from being used in files other than the one that the implementation is defined in. I believe this is a bug, as the rest of the module's functions are not marked as static, allowing them to be used anywhere.

The issue didn't seem to appear when using C and clang, but it did show up when the rest of the project was C++, and using MSVC, but the issue seems to occur with both C and C++.

I've attached a Reproducible Example to allow you to see the issue.

Environment: Windows 11 22H2 (10.0.22621.1702)
Compiler: MSVC (Microsoft Visual C++) version 19.35.32215
Commit: ef31a3d

commented

@ERmilburn02 Hey! First issue found! Good catch! :D

commented

Fixed!