Add initial FnixLib development implementation
This commit is contained in:
commit
84742ae38e
33 files changed
+3340
No files matched your search
@@ -0,0 +1,18 @@
|
||||
/* 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 */
|
||||
Reference in new issue
Block a user