Update common.h

pull/2460/head
Muhammed Galib Uludag 3 years ago
parent cae0b50ea0
commit 2bcef22384

@ -390,16 +390,17 @@ struct source_loc
struct file_event_handlers struct file_event_handlers
{ {
std::function<void(const filename_t &filename)> before_open; file_event_handlers()
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()
: before_open{nullptr} : before_open{nullptr}
, after_open{nullptr} , after_open{nullptr}
, before_close{nullptr} , before_close{nullptr}
, after_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 { namespace details {

Loading…
Cancel
Save