Update common.h

pull/2460/head^2
Muhammed Galib Uludag 3 years ago committed by GitHub
parent 25eb38120c
commit 51848b1cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -390,16 +390,17 @@ struct source_loc
struct file_event_handlers
{
std::function<void(const filename_t &filename)> before_open;
std::function<void(const filename_t &filename, std::FILE *file_stream)> after_open;
std::function<void(const filename_t &filename, std::FILE *file_stream)> before_close;
std::function<void(const filename_t &filename)> after_close;
file_event_handlers()
file_event_handlers()
: before_open{nullptr}
, after_open{nullptr}
, before_close{nullptr}
, after_close{nullptr}
{}
std::function<void(const filename_t &filename)> before_open;
std::function<void(const filename_t &filename, std::FILE *file_stream)> after_open;
std::function<void(const filename_t &filename, std::FILE *file_stream)> before_close;
std::function<void(const filename_t &filename)> after_close;
};
namespace details {

Loading…
Cancel
Save