mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
more stuff
This commit is contained in:
parent
367edd1a87
commit
0e9bb67576
|
@ -19,7 +19,7 @@ int main() {
|
|||
lua["bark"] = sol::lua_nil;
|
||||
sol::optional<int> y = lua["bark"];
|
||||
// y will not have a value
|
||||
if (x) {
|
||||
if (y) {
|
||||
return -1;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user