We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
#1538
Sorry, something went wrong.
add_rules("mode.release", "mode.debug") add_requires("lua", "glib") target("test") set_kind("binary") add_rules("vala") add_files("src/*.vala") add_packages("lua", "glib") add_values("vala.packages", "lua")
main.vala
using Lua; static int my_func (LuaVM vm) { stdout.printf ("Vala Code From Lua Code! (%f)\n", vm.to_number (1)); return 1; } static int main (string[] args) { string code = """ print "Lua Code From Vala Code!" my_func(33) """; var vm = new LuaVM (); vm.open_libs (); vm.register ("my_func", my_func); vm.do_string (code); return 0; }
More examples: https://github.com/xmake-io/xmake/tree/dev/tests/projects/vala
support libraries #1618
No branches or pull requests
The text was updated successfully, but these errors were encountered: