taisei/src/vfs/error.h
2023-01-05 04:25:21 +01:00

20 lines
525 B
C

/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#pragma once
#include "taisei.h"
#include "log.h"
void vfs_set_error(char *fmt, ...) attr_printf(1, 2);
void vfs_set_error_from_sdl(void);
#define vfs_set_error(fmt, ...) ({ \
log_debug("vfs_set_error: " fmt, ##__VA_ARGS__); \
vfs_set_error(fmt, ##__VA_ARGS__); \
})