Skip to content

Cross OS library with support for Linux and FreeRTOS.

License

Notifications You must be signed in to change notification settings

KrystianD/crosslib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crosslib

Cross OS library with support for Linux and FreeRTOS

Usage

set(CROSSLIB_PORT "linux")
include(<PATH_TO_CROSSLIB>/crosslib.cmake)

add_executable(program main.cpp)

target_link_libraries(program crosslib)

Error handling

#include <stdio.h>
#include <stdarg.h>

void crosslib_on_error(const char* fmt, va_list arg)
{
	fprintf(stderr, "CrossLib error: ");
	vfprintf(stderr, fmt, arg);
}