edubart / nelua-decl Goto Github PK
View Code? Open in Web Editor NEWC binding generator for Nelua using GCC Lua plugin.
C binding generator for Nelua using GCC Lua plugin.
thanks for this, could you include pre-made raylib extras?
https://github.com/raysan5/raylib/tree/master/src/extras
pls
Compiling gcc-lua in this repository works, but not from the official site. Why? When I make the clone from https://peter.colberg.org/gcc-lua/install I get:
myuser@myuser-HP-EliteBook-8470p:~/dev/gcclua/gcc-lua> make
make[1]: Entering directory '/home/myuser/dev/gcclua/gcc-lua/gcc'
gcc -c -o gcclua.o -I/usr/lib64/gcc/x86_64-suse-linux/11/plugin/include -fPIC -xc++ -O2 -Wall -Wformat-security -I/usr/include/lua5.3 gcclua.c
gcclua.c:62:12: error: ‘namespace_binding’ was not declared in this scope; did you mean ‘namespace_bindings_p’?
62 | __typeof__(namespace_binding) namespace_binding __attribute__((weak));
| ^~~~~~~~~~~~~~~~~
| namespace_bindings_p
gcclua.c: In function ‘int gcclua_tree_get_decl_source_location(lua_State*)’:
gcclua.c:417:7: error: ‘DECL_IS_BUILTIN’ was not declared in this scope; did you mean ‘DEF_LIB_BUILTIN’?
417 | if (DECL_IS_BUILTIN(*t)) {
| ^~~~~~~~~~~~~~~
| DEF_LIB_BUILTIN
gcclua.c: In function ‘int gcclua_tree_get_type_anonymous(lua_State*)’:
gcclua.c:636:22: error: ‘TYPE_ANONYMOUS_P’ was not declared in this scope; did you mean ‘TYPE_ANON_P’?
636 | lua_pushboolean(L, TYPE_ANONYMOUS_P(*t));
| ^~~~~~~~~~~~~~~~
| TYPE_ANON_P
gcclua.c: In function ‘int gcclua_tree_get_type_vector_subparts(lua_State*)’:
gcclua.c:883:41: error: cannot convert ‘poly_uint64’ {aka ‘poly_int<1, long unsigned int>’} to ‘lua_Number’ {aka ‘double’}
883 | lua_pushnumber(L, TYPE_VECTOR_SUBPARTS(*t));
| ~~~~~~~~~~~~~~~~~~~~^~~~
| |
| poly_uint64 {aka poly_int<1, long unsigned int>}
In file included from gcclua.c:33:
/usr/include/lua5.3/lua.h:224:64: note: initializing argument 2 of ‘void lua_pushnumber(lua_State*, lua_Number)’
224 | LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n);
| ~~~~~~~~~~~^
make[1]: *** [Makefile:29: gcclua.o] Error 1
make[1]: Leaving directory '/home/myuser/dev/gcclua/gcc-lua/gcc'
make: *** [Makefile:38: gcc] Error 2
But when I follow the instructions in:
https://github.com/edubart/nelua-decl#how-to-generate-bindings
then everything works.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.