Skip to content

Commit e0820c2

Browse files
committed
FFI: Comment out functions using C++ types that cannot be parsed by Fiddle
1 parent f3f0765 commit e0820c2

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

lib/grm/ffi.rb

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,16 @@ module FFI
8686
try_extern 'int grm_switch(unsigned int id)'
8787
try_extern 'int grm_load_graphics_tree(FILE *file)'
8888
try_extern 'int grm_validate(void)'
89-
try_extern 'std::shared_ptr<GRM::Element> grm_get_document_root(void)'
90-
try_extern 'std::shared_ptr<GRM::Render> grm_get_render(void)'
91-
try_extern 'int grm_iterate_grid(GRM::Grid *grid, const std::shared_ptr<GRM::Element> &parent_dom_element, int plot_id)'
92-
try_extern 'int grm_plot_helper(GRM::GridElement *grid_element, GRM::Slice *slice, const std::shared_ptr<GRM::Element> &parent_dom_element, int plot_id)'
93-
try_extern 'std::shared_ptr<GRM::Element> grm_get_subplot_from_ndc_point_using_dom(double x, double y)'
94-
try_extern 'std::shared_ptr<GRM::Element> grm_get_subplot_from_ndc_points_using_dom(unsigned int n, const double *x, const double *y)'
95-
try_extern 'void grm_set_attribute_on_all_subplots(std::string attribute, int value)'
96-
try_extern 'int grm_get_focus_and_factor_from_dom(const int x1, const int y1, const int x2, const int y2, const int keep_aspect_ratio, double *factor_x, double *factor_y, double *focus_x, double *focus_y, std::shared_ptr<GRM::Element> &subplot_element)'
97-
try_extern 'std::map<std::string, std::list<std::string>> grm_get_context_data()'
98-
try_extern 'std::shared_ptr<GRM::Document> grm_load_graphics_tree_schema(bool with_private_attributes = false)'
89+
# The following functions use C++ types that cannot be parsed by Fiddle
90+
# try_extern 'std::shared_ptr<GRM::Element> grm_get_document_root(void)'
91+
# try_extern 'std::shared_ptr<GRM::Render> grm_get_render(void)'
92+
# try_extern 'int grm_iterate_grid(GRM::Grid *grid, const std::shared_ptr<GRM::Element> &parent_dom_element, int plot_id)'
93+
# try_extern 'int grm_plot_helper(GRM::GridElement *grid_element, GRM::Slice *slice, const std::shared_ptr<GRM::Element> &parent_dom_element, int plot_id)'
94+
# try_extern 'std::shared_ptr<GRM::Element> grm_get_subplot_from_ndc_point_using_dom(double x, double y)'
95+
# try_extern 'std::shared_ptr<GRM::Element> grm_get_subplot_from_ndc_points_using_dom(unsigned int n, const double *x, const double *y)'
96+
# try_extern 'void grm_set_attribute_on_all_subplots(std::string attribute, int value)'
97+
# try_extern 'int grm_get_focus_and_factor_from_dom(const int x1, const int y1, const int x2, const int y2, const int keep_aspect_ratio, double *factor_x, double *factor_y, double *focus_x, double *focus_y, std::shared_ptr<GRM::Element> &subplot_element)'
98+
# try_extern 'std::map<std::string, std::list<std::string>> grm_get_context_data()'
99+
# try_extern 'std::shared_ptr<GRM::Document> grm_load_graphics_tree_schema(bool with_private_attributes = false)'
99100
end
100101
end

0 commit comments

Comments
 (0)