Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
peacalm committed Jun 25, 2023
1 parent c618bb3 commit 144d769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/peacalm/luaw.h
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ class luaw {
public:
//////////////////////// call Lua function ///////////////////////////////////

/// Call a global Lua function named 'fname' using C++ parameter 'args'.
/// Call a global Lua function specified by name using C++ parameters.
template <typename Return, typename... Args>
Return callf(const char* fname, const Args&... args) {
PEACALM_LUAW_ASSERT(fname);
Expand All @@ -1643,7 +1643,7 @@ class luaw {
return f(args...);
}

// Call a Lua function specified by path
/// Call a Lua function specified by path using C++ parameters.
template <typename Return, typename... Args>
Return callf(const std::initializer_list<const char*>& path,
const Args&... args) {
Expand Down

0 comments on commit 144d769

Please sign in to comment.