Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Happy to answer questions! Let's do it in Discussions, though, and not Issues.

In the extconf (ext/sqlite3/extconf.rb), which is where the C extension is configured, you'll see this line:

        have_func('sqlite3_column_database_name')

The method have_func comes from Ruby's mkmf.rb or MakeMakefile module, and is documented here:

https://docs.ruby-lang.org/en/master/MakeMakefile.html#method-i-have_func

Relevant:

Returns whether or not the function func can be found in the common header files, or within any headers that you provide. If found, a macro is passed as a preprocessor constant to the compiler using the function name, in uppercase, prepended with HAVE_.

For example, if have_func…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fractaledmind
Comment options

Answer selected by flavorjones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #460 on January 08, 2024 18:22.