Skip to content

Commit

Permalink
[docs] minor doc pass on lua
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed Oct 29, 2024
1 parent a2aebbb commit 0266562
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/tz/core/lua.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace tz
* - Call @ref lua_parse_args to retrieve all the arguments of your function at once. This is recommended for most use-cases.
*
* Example: C function callable in lua:
* ```
* ```c
* int fnimpl()
* {
* auto [arg1, arg2] = tz::lua_parse_args<int, std::string>();
Expand All @@ -34,7 +34,9 @@ namespace tz
* }
* // In your application initialisation code:
* tz::lua_define_function("my_cool_function", fnimpl);
* // In your lua code:
* ```
* In your lua code:
* ```lua
* ret1, ret2 = my_cool_function(123, "Bob" .. " Marley")
* ```
*/
Expand Down

0 comments on commit 0266562

Please sign in to comment.