Mercurial > molko
view doc/docs/dev/api/core/error.md @ 288:cc0f02ae9005
core: add maths_scale function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 07 Jan 2021 15:50:01 +0100 |
parents | c4da052c0def |
children | 196264679079 |
line wrap: on
line source
# Module: error Synopsis: ```c #include <core/error.h> ``` Retrieve or set last global error. !!! note The error variable is global and not thread safe nor reentrant. ## Functions ### error Return the last error string. ```c const char * error(void) ``` ### errorf Set the global error using [printf][] format string. Also return false for convenience. ```c bool errorf(const char *fmt, ...) ``` ### errorva Similar to [errorf](#errorf) but using a `va_list` argument instead. ```c bool errorva(const char *fmt, va_list ap) ``` [printf]: https://en.cppreference.com/w/c/io/fprintf