Commit Graph

30 Commits

Author SHA1 Message Date
Paweł Bylica 428e9b1463
test: Change EXPECT to ASSERT to protect against invalid memory access 2019-09-13 12:57:29 +02:00
Paweł Bylica 4d4e8e6f37
cmake: Upgrade GTest to 1.8.1 2019-09-13 11:59:10 +02:00
Paweł Bylica 0056ef28e6
test: Fix comparison type mismatches
This would cause issue in GTest 1.8.1 on Visual Studio.
2019-09-13 11:57:40 +02:00
Alex Beregszaszi dd065265d9 examples: add evmc_tx_context to ExampleHost 2019-08-08 18:11:28 +02:00
Paweł Bylica 55329d8dfa
helpers, cpp: Add evmc_make_result() for constructing results
This moves the evmc_result construction logic from evmc::result() constructor to helper.h. This function is now exposed as a C helper, C++ evmc::make_result() helper and used in the evmc::result() constructor.
This is convenient for VM implementations which need to construct C evmc_result, not C++ evmc::result.
2019-08-06 12:27:39 +02:00
Paweł Bylica e4ae2162c5
cpp: Add evmc::result constructor to copy output 2019-08-06 09:52:42 +02:00
Paweł Bylica 4ac70471ec
cpp: Rename literal suffixes: _addr -> _address, _b32 -> _bytes32 2019-07-24 13:17:28 +02:00
Paweł Bylica c358c4a024
cpp: Add user-defined literals for basic types 2019-07-24 13:17:27 +02:00
Paweł Bylica 279c1cd6e7
test: Move an unit test from "helpers" to "cpp" 2019-07-23 14:07:44 +02:00
Paweł Bylica 6b46dfb7b0
test: Do not include helpers.hpp 2019-07-23 14:07:44 +02:00
Paweł Bylica 18e6dabe73
cpp: Add is_zero() and explicit bool() for basic types 2019-07-23 14:07:43 +02:00
Paweł Bylica 635aebeb66
cpp: Add std::hash specializations for basic types 2019-07-23 14:07:43 +02:00
Paweł Bylica 0bde57ec09
cpp: Basic types comparisons 2019-07-23 14:07:42 +02:00
Paweł Bylica e74f42e2ef
cpp: Add basic types with default constructor 2019-07-23 14:07:42 +02:00
Alex Beregszaszi be56b092b5 examples: Move example_vm into the examples/example_vm subdirectory 2019-07-23 12:16:44 +01:00
Paweł Bylica e1ff8cb007
cpp: Add unit test for evmc::vm move to itself 2019-07-03 19:37:17 +02:00
Paweł Bylica 1f3243a55e
cpp: Allow checking if evmc::vm is valid 2019-07-03 19:37:16 +02:00
Paweł Bylica fff439a53b
cpp: Allow moving evmc::vm 2019-07-03 19:37:16 +02:00
Paweł Bylica 6292d1780e
cpp: Add vm::get_capabilities() method 2019-05-29 13:11:52 +02:00
Paweł Bylica 594da7553e
cpp: Rename result::raw() to result::release_raw() 2019-05-16 08:55:55 +02:00
Paweł Bylica 3c91910f52
cpp: Add unit test for moving evmc::result 2019-05-14 17:57:59 +02:00
Paweł Bylica 577340763c
cpp: Include <vector> to show MSVC compilation error
This is related to misuse of `std::swap<evmc_result>`. We should not use explicit template arguments, because this disabled SFINAE and forces instantiation of all overloads.
2019-05-14 16:13:00 +02:00
Paweł Bylica 60c666a612
cpp: Add unit test for evmc::result RAII 2019-05-14 16:13:00 +02:00
Paweł Bylica 489d832a5c
cpp: Extend Host::call() unit test to show double free bug 2019-04-29 15:47:55 +02:00
Paweł Bylica 39162766df
Update copyright year, include the years of files creation 2019-04-24 18:36:28 +02:00
Paweł Bylica e824942149
cpp: Make HostContext to implement HostInterface 2019-04-02 11:28:21 +02:00
Paweł Bylica 1a3ca7618d
cpp: Rename host to HostContext 2019-04-02 11:28:21 +02:00
Paweł Bylica cf24ccb2ac
test: Add basic unit tests for C++ Host wrapper 2019-03-15 11:56:55 +01:00
Paweł Bylica 553003ee3b
Fix compilation with VS 2015 2019-01-23 11:17:16 +01:00
Paweł Bylica b0ae85ebbf
Add C++ wrappers/bindings 2019-01-22 14:15:26 +01:00