Skip to content
New issue

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

Generated void * function not returning anything #2

Closed
oprypin opened this issue Oct 8, 2017 · 0 comments
Closed

Generated void * function not returning anything #2

oprypin opened this issue Oct 8, 2017 · 0 comments

Comments

@oprypin
Copy link

oprypin commented Oct 8, 2017

When generating qt5.cr I get the following code generated:

extern "C" void * bg_QWidget_qt_metacast_const_char_X(QWidget * _self_, const char * unnamed_arg_0) {
  _self_->qt_metacast(unnamed_arg_0);
}

Meanwhile, the pre-generated branch has the following:

extern "C" void* bg_QWidget_qt_metacast_const_char_X(QWidget *_self_, const char* unnamed_arg_0) {
  return _self_->qt_metacast(unnamed_arg_0);
}
$ llvm-config --version
5.0.0
$ clang --version
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ crystal --version
Crystal 0.23.1 (2017-09-10) LLVM 5.0.0
bindgen$ git status
HEAD detached at 8c946eb
nothing to commit, working tree clean

crystal-qt$ git status
HEAD detached at a570e69
nothing to commit, working tree clean

Code used to generate:

(cd ../crystal-qt && ../bindgen/tool.sh qt.yml && egrep -A2 "bg_QWidget_qt_metacast_const_char_X\(Q" ext/qt_binding.cpp)
Papierkorb added a commit that referenced this issue Oct 8, 2017
docelic pushed a commit that referenced this issue Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant