summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.cc b/main.cc
index 773e0f4..b1d442e 100644
--- a/main.cc
+++ b/main.cc
@@ -7,14 +7,14 @@ luma::dat_t luma::dat;
int main(int argc, char * * argv) {
if(argc < 0x2) {
std::cout << "Missing argument \"file\".\n";
- exit(EXIT_FAILURE);
+ std::exit(EXIT_FAILURE);
}
- if((access(argv[0x1], F_OK) == 0)) {
+ if((::access(argv[0x1], F_OK) == 0x0)) {
luma::stdlibsock::gfx::crtwin("luma test"s,0x0,0x0,0x400,0x300,false);
}
else {
std::cout << "The file doesn't exist.\n";
- exit(EXIT_FAILURE);
+ std::exit(EXIT_FAILURE);
}
- exit(EXIT_SUCCESS);
+ std::exit(EXIT_SUCCESS);
}