Procházet zdrojové kódy

Update option_instance.md (#173)

Kika před 1 rokem
rodič
revize
caf723b3ac
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      manual/option_instance.md

+ 6 - 0
manual/option_instance.md

@@ -1,6 +1,10 @@
 
 
 This page describes the interface for `option` of functions like `on_load()`, `on_check()` or `after_check()` of the [Configuration option](manual/configuration_option.md)
 This page describes the interface for `option` of functions like `on_load()`, `on_check()` or `after_check()` of the [Configuration option](manual/configuration_option.md)
 
 
+#### option:value
+
+- Get the value of the option
+
 #### option:name
 #### option:name
 
 
 - Get the name of the option
 - Get the name of the option
@@ -25,6 +29,8 @@ option:get("defines")
 option:set("links", "sdl2")
 option:set("links", "sdl2")
 -- set the defined macros
 -- set the defined macros
 option:set("defines", "SDL_MAIN_HANDLED")
 option:set("defines", "SDL_MAIN_HANDLED")
+-- set configvar
+option:set("configvar", option:name(), option:value(), {quote = false})
 ```
 ```
 
 
 #### option:add
 #### option:add