Harald Klimach avatar Harald Klimach committed 8566ba0

Updated description on the open_config -> open_config_file change

Comments (0)

Files changed (1)

 === Reading a Lua Script ===
 
 You need a handle for the Lua context of type **flu_state**, and you can get
-that by opening and processing a Lua script with **open_config**:
+that by opening and processing a Lua script with **open_config_file**:
 {{{
 #!fortran
-call open_config(L, filename)
+call open_config_file(L, filename, errCode, errString)
 }}}
 
+Instead of reading a script from a file, you can also execute a string directly
+by using **open_config_chunk** with the same interface, but replacing the
+filename with the chunk of Lua code to be executed.
+The arguments errCode and errString are optional and return errors, which might
+occur while loading or executing the Lua code.
+
 In the end, after getting all configuration values, close it again with
 **close_config**:
 {{{
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.