2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-25 18:22:25 +00:00

deleted accumulate, defer, preload -- all done with on_error now.

This commit is contained in:
Emil Dotchevski
2020-06-07 16:35:42 -07:00
parent 857085347e
commit 443700ef16
44 changed files with 269 additions and 404 deletions

View File

@@ -13,7 +13,7 @@ extern "C" {
}
#include <boost/leaf/handle_error.hpp>
#include <boost/leaf/result.hpp>
#include <boost/leaf/preload.hpp>
#include <boost/leaf/on_error.hpp>
#include <iostream>
#include <stdlib.h>
@@ -88,7 +88,7 @@ leaf::result<int> call_lua( lua_State * L )
leaf::augment_id augment;
if( int err=lua_pcall(L,0,1,0) ) // Ask Lua to call the global function call_do_work.
{
auto load = leaf::preload( e_lua_error_message{lua_tostring(L,1)} );
auto load = leaf::on_error( e_lua_error_message{lua_tostring(L,1)} );
lua_pop(L,1);
// get_error will return the error_id generated in our Lua callback. This is the