Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
peacalm committed Apr 23, 2023
1 parent ffcd2d5 commit 72fb18e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions include/peacalm/lua_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,15 +361,15 @@ class lua_wrapper {
// [-9223372036854775808, 9223372036854775807]
//
// Examples:
// number 2.5 -> string "2.5" (By Lua)
// string "2.5" -> double 2.5 (By Lua)
// double 2.5 -> int 2 (By C++)
// string "2.5" -> int 2 (Firstly "2.5"->2.5 by lua, then 2.5->2 by C++)
// bool true -> int 1 (By C++)
// int 0 -> bool false (By C++)
// double 2.5 -> bool true (By C++)
// string "2.5" -> bool true ("2.5"->2.5 by Lua, then 2.5->true by C++)
//
// * number 2.5 -> string "2.5" (By Lua)
// * string "2.5" -> double 2.5 (By Lua)
// * double 2.5 -> int 2 (By C++)
// * string "2.5" -> int 2 (Firstly "2.5"->2.5 by lua, then 2.5->2 by C++)
// * bool true -> int 1 (By C++)
// * int 0 -> bool false (By C++)
// * double 2.5 -> bool true (By C++)
// * string "2.5" -> bool true ("2.5"->2.5 by Lua, then 2.5->true by C++)
// * string "0" -> bool true ("0"->0 by Lua, then 0->false by C++)

/**
* @brief Convert a value in Lua stack to C++ simple type value.
Expand Down

0 comments on commit 72fb18e

Please sign in to comment.