3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-14 04:48:45 +00:00
z3/src/test/for_each_file.h
Nikolaj Bjorner d0e20e44ff booyah
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-07-04 15:56:30 -07:00

32 lines
478 B
C

/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
foreach_file.h
Abstract:
Traverse files in a directory that match a given suffix.
Apply a method to each of the files.
Author:
Nikolaj Bjorner (nbjorner) 2006-11-3.
Revision History:
--*/
#pragma once
#pragma once
struct for_each_file_proc {
virtual bool operator()(const char* file_path) = 0;
};
bool for_each_file(for_each_file_proc& proc, const char* base, const char* suffix);