Skip to content

Commit e3aabd1

Browse files
committed
Add set_load_callback function
1 parent ed258b7 commit e3aabd1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

simplecpp.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ namespace simplecpp {
501501

502502
using load_callback_type = std::function<void (FileData &)>;
503503

504+
void set_load_callback(load_callback_type cb) {
505+
mLoadCallback = std::move(cb);
506+
}
507+
504508
private:
505509
struct Impl;
506510
std::unique_ptr<Impl> mImpl;

0 commit comments

Comments
 (0)