cookbooks:devel:core
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
cookbooks:devel:core [2022/02/14 07:49] – [tcp_script_mode] miconda | cookbooks:devel:core [2022/04/11 15:10] (current) – [substdefs] bkaufman | ||
---|---|---|---|
Line 439: | Line 439: | ||
Similar to **subst**, but in addition it adds a **#!define ID " | Similar to **subst**, but in addition it adds a **#!define ID " | ||
+ | |||
+ | ==== trydefenv ==== | ||
+ | |||
+ | <code c> | ||
+ | #!trydefenv ID=ENVVAR | ||
+ | </ | ||
+ | |||
+ | Similar to **defenv**, but will not error if the environmental variable is not set. This allows for boolean defines via system ENVVARs. | ||
+ | |||
+ | <code c> | ||
+ | #!trydefenv WITH_MYSQL | ||
+ | |||
+ | #!ifdef WITH_MYSQL | ||
+ | loadmodule " | ||
+ | #!ifdef | ||
+ | </ | ||
+ | |||
+ | ==== trydefenvns ==== | ||
+ | |||
+ | Similar to **# | ||
+ | |||
+ | <code c> | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
===== Core Keywords ===== | ===== Core Keywords ===== | ||
cookbooks/devel/core.txt · Last modified: 2022/04/11 15:10 by bkaufman