mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
bb29127785
`set_function`/`set_usertype` now properly use `set` For the time being, we are going to avoid implementing `traverse`; aside from performance of nested table access (e.g. `int x = lua["a"]["b"]["c"]`), it's a pain. ;~;
18 lines
657 B
C++
18 lines
657 B
C++
#include "bench_cpp_function.hpp"
|
|
#include "bench_lua_function.hpp"
|
|
#include "bench_get.hpp"
|
|
#include "bench_set.hpp"
|
|
#include "bench_usertype.hpp"
|
|
#include "nonius/nonius.h++"
|
|
|
|
int main( int argc, char* argv[] ) {
|
|
using namespace std::literals::string_literals;
|
|
std::string configurationname = argv[ 1 ];
|
|
std::string platformname = argv[ 2 ];
|
|
bench_lua_function( "bench/", configurationname, platformname );
|
|
bench_cpp_function( "bench/", configurationname, platformname );
|
|
bench_get( "bench/", configurationname, platformname );
|
|
bench_set( "bench/", configurationname, platformname );
|
|
bench_usertype( "bench/", configurationname, platformname );
|
|
}
|