//src/hv/kvm: Begin implementing the acclerant API
The files were moved to be a little bit nicer directory-structure wise. Errors are now thrown via exceptions. I initially wanted to do no-exceptions, but doing so will be kind of annoying with third party libraries and in general, so the shift to exceptions is a Good Thing.
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -1,4 +1,14 @@
|
||||
|
||||
#include <hv/kvm/accelerant.hpp>
|
||||
#include "utils/error.hpp"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
try {
|
||||
auto accelerant = hv::kvm::Accelerant::create();
|
||||
printf("Created KVM accelerant\n");
|
||||
} catch(util::ErrorException& error) {
|
||||
printf("Error creating KVM Accelerant: %s\n", error.what());
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user