19 lines
546 B
C
19 lines
546 B
C
/* Uso interno de FnixLib. No forma parte de la API pública. */
|
|
#ifndef FNIX_CORE_INTERNAL_H
|
|
#define FNIX_CORE_INTERNAL_H
|
|
|
|
#include "fnix/errors.h"
|
|
|
|
#if defined(__GNUC__)
|
|
#define FNIX_PRINTF_LIKE(fmt_arg, first_arg) \
|
|
__attribute__((format(printf, fmt_arg, first_arg)))
|
|
#else
|
|
#define FNIX_PRINTF_LIKE(fmt_arg, first_arg)
|
|
#endif
|
|
|
|
/* Registra el último error del hilo actual (código + mensaje con formato printf). */
|
|
void fnix_set_error(FnixError code, const char *format, ...)
|
|
FNIX_PRINTF_LIKE(2, 3);
|
|
|
|
#endif /* FNIX_CORE_INTERNAL_H */
|