18 lines
402 B
C++
18 lines
402 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <string>
|
|
|
|
namespace voidlibc::voidlink {
|
|
|
|
struct WriteResult {
|
|
bool ok = false;
|
|
std::string error;
|
|
};
|
|
|
|
// Writes a syntactically-valid .vlc containing no sections, no symbols,
|
|
// no imports, no exports. Used for M0 round-trip testing of the format.
|
|
WriteResult write_empty(const std::filesystem::path& out_path);
|
|
|
|
} // namespace voidlibc::voidlink
|