Luna/libs/libc/include/luna.h
apio 8398b2e2e4 libc: Change bits/macros.h to use a __lc_ prefix for internal macros
That way, we don't pollute user programs with our own 'noreturn' and 'deprecated' macros
2022-10-15 09:52:37 +02:00

27 lines
527 B
C

#ifndef _LUNA_H
#define _LUNA_H
#include <bits/macros.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C"
{
#endif
/* Returns the current program's thread identifier. */
pid_t gettid();
/* Sleeps for ms milliseconds. */
unsigned int msleep(unsigned int ms);
/* Prints a message to standard error and aborts the program. */
__lc_noreturn void __luna_abort(const char* message);
#ifdef __cplusplus
}
#endif
#define NOT_IMPLEMENTED(message) __luna_abort("not implemented: " message "\n")
#endif