edubart / nelua-decl

C binding generator for Nelua using GCC Lua plugin.
48 stars 9 forks source link

raylib extras #5

Open CrezyDud opened 3 years ago

CrezyDud commented 3 years ago

thanks for this, could you include pre-made raylib extras? https://github.com/raysan5/raylib/tree/master/src/extras pls

CrezyDud commented 3 years ago

i don't know how to generate a .lua plugin thingy and manual would hurt

CrezyDud commented 3 years ago

i tried it, something is wrong tho

CrezyDud commented 3 years ago

https://github.com/MrSwedish/nelua-decl/

CrezyDud commented 3 years ago
make test
nelua raylib-test.nelua
raylib-test.nelua:1:1: from: AST node Block
require '.raylibe'
^~~~~~~~~~~~~~~~~~
/home/me/dev/nelua-decl/libs/raylib/raylibe.nelua:1:1: from: AST node Block
##[[
^~~~
/home/me/dev/nelua-decl/libs/raylib/raylibe.nelua:1279:37: error: undeclared symbol '_AddressInformation'
global AddressInformation: type = @*_AddressInformation
                                    ^~~~~~~~~~~~~~~~~~~

make: *** [Makefile:25: test] Error 1

pls me

edubart commented 3 years ago
make test
nelua raylib-test.nelua
raylib-test.nelua:1:1: from: AST node Block
require '.raylibe'
^~~~~~~~~~~~~~~~~~
/home/me/dev/nelua-decl/libs/raylib/raylibe.nelua:1:1: from: AST node Block
##[[
^~~~
/home/me/dev/nelua-decl/libs/raylib/raylibe.nelua:1279:37: error: undeclared symbol '_AddressInformation'
global AddressInformation: type = @*_AddressInformation
                                    ^~~~~~~~~~~~~~~~~~~

make: *** [Makefile:25: test] Error 1

pls me

As the error says, the symbol _AddressInformation is not imported, you should edit raylib.lua file to allow importing them.

CrezyDud commented 3 years ago

thanks, but how do i do that?

CrezyDud commented 3 years ago

typedef struct _AddressInformation *AddressInformation; is in the .h file