Skip to content
Discussion options

You must be logged in to vote

I don't know why the first option doesn't work. I run the following commands:

use option_end or option("option", {default = false})

option("option")
    set_default(false)
option_end(). --------------

if has_config("option") then 
    add_defines("OPTION")
end

or

option("option", {default = false})

if has_config("option") then 
    add_defines("OPTION")
end

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by metrapoliten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants