]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Add support for async main
authorPrinceton Ferro <princetonferro@gmail.com>
Thu, 13 Jan 2022 07:40:18 +0000 (02:40 -0500)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 17 Jan 2022 16:33:22 +0000 (17:33 +0100)
commit45fe8523ad392f1aaa0f24d83b63e91774938775
tree08b17992102f62a18712d1d563461ee481568732
parentcd25750b52d03962220663e5c29d2a336a5fceaa
codegen: Add support for async main

If main() is async then setup a new GMainLoop and call _vala_main()
asynchronously.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1275
codegen/valaccodeattribute.vala
codegen/valaccodemethodmodule.vala
codegen/valagasyncmodule.vala
tests/Makefile.am
tests/asynchronous/method-main-async-void.c-expected [new file with mode: 0644]
tests/asynchronous/method-main-async-void.vala [new file with mode: 0644]
tests/asynchronous/method-main-async.c-expected [new file with mode: 0644]
tests/asynchronous/method-main-async.vala [new file with mode: 0644]
tests/semantic/method-main-async.test [deleted file]
vala/valamethod.vala