This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const expectEqual = @import("std").testing.expectEqual; | |
const V = struct{ | |
a: i32, | |
b: i32, | |
pub fn sum(self: V) i32 { | |
// Note: in a more complex use case, we may depend on the result location within this function ( see issue #2765 ). | |
// (necessary for e.g. self-referential result types) | |
return self.a + self.b; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SOL_CHECK_ARGUMENTS | |
#include <sol.hpp> | |
#include <iostream> | |
#include <memory> | |
sol::protected_function print_bool_match_table(const sol::state_view& lua); | |
int main(){ |