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

C Bindings #1444

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

C Bindings #1444

wants to merge 27 commits into from

Conversation

parkerstafford
Copy link

Review for Kam

Copy link

codecov bot commented May 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.58%. Comparing base (6168ad9) to head (1cd49fd).
Report is 12 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1444   +/-   ##
=======================================
  Coverage   96.58%   96.58%           
=======================================
  Files         103      103           
  Lines        7701     7707    +6     
=======================================
+ Hits         7438     7444    +6     
  Misses        263      263           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mwestphal
Copy link
Contributor

FYI @Meakk

Copy link

You are modifying libf3d public API! ⚠️Please update bindings accordingly⚠️!
You can find them in their respective directories: python, java, webassembly.

@mwestphal
Copy link
Contributor

A few warnings and errors to fix in CI:

 cc1: warning: command-line option '-Woverloaded-virtual' is valid for C++/ObjC++ but not for C
cc1: error: command-line option '-Wsuggest-override' is valid for C++/ObjC++ but not for C [-Werror]
In file included from /__w/f3d/f3d/source/f3d/library/public/image.h:4,
                 from /__w/f3d/f3d/source/f3d/library/src/image_c_api.c:2:
/__w/f3d/f3d/source/f3d/library/public/exception.h:4:10: fatal error: stdexcept: No such file or directory
    4 | #include <stdexcept>
      |          ^~~~~~~~~~~
cc1: all warnings being treated a

But it looks good so far!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this file compiled ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not seem so, it needs to be added in library/testing/CMakeLists.txt

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not seem so, it needs to be added in library/testing/CMakeLists.txt

library/public/image_c_api.h Show resolved Hide resolved
library/public/image_c_api.h Show resolved Hide resolved
f3d::image img;
};

f3d_image_t* f3d_image_new(void) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file (which includes and uses image.h) must be a C++ file. Only image_c_api.h have to be C only (and the unit test of course).

@mwestphal
Copy link
Contributor

hey @parkerstafford , need any help moving forward ?

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

Successfully merging this pull request may close these issues.

3 participants