raysan5 / raylib

A simple and easy-to-use library to enjoy videogames programming

Home Page:http://www.raylib.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[parser] No functions in the output from `raymath.h`

KislyjKisel opened this issue · comments

Please, before submitting a new issue verify and check:

  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • I checked the documentation on the wiki
  • My code has no errors or misuse of raylib

Issue description

raylib_parser --input ../src/raymath.h produces raymath_api.txt with Functions found: 0. It works as expected with raylib.h.

Not a bug. Check what the makefile in parser/ does:

raylib/parser/Makefile

Lines 18 to 19 in 52f2a10

raymath_api.$(EXTENSION): ../src/raymath.h raylib_parser
./raylib_parser -i ../src/raymath.h -o raymath_api.$(EXTENSION) -f $(FORMAT) -d RMAPI

in particular:
-d RMAPI
You need to tell the parser which macro each line begins with.

Just run make EXTENSION=txt raymath_api.txt in that directory if you want a setup that for sure works.
or make EXTENSION=json FORMAT=JSON raymath_api.json and so on.

It works, thank you. Perhaps the command line example can be updated to include -d RMAPI?

Nice catch, agreed.
That help text is definitely wrong. I'll handle it.