93 int (*printf)(
const char *fmt, ...);
98 uint64_t (*time)(void);
153 #define PTK_assert(x) do { \ 155 PTK_printf("Assertion `" #x "` failed on line %d in %s\n", __LINE__, __FILE__); \ uint64_t PTK_getTime()
If available, this obtains the real time in microseconds since a some reference point in the past...
void PTK_init(PTK_CRT *crt)
This function initializes the library with the given list of function pointers to functions that prov...
void PTK_exit(int status)
This performs an immediate exit of the entire task, which typically will also kill all other threads ...
void PTK_printf(const char *fmt,...)
If printf was configured, this formats the given string and prints it appropriately. Otherwise, it does nothing.